Re: converting look-up fields



Kim,

The tables in a database are to store data and to maintain the data's
integrity. They do not exist to display or directly enter data directly.
Anything that was done to make display or data entry into the tables easier
is patently wrong. Please see:

http://www.mvps.org/access/tencommandments.htm

and look at the first and second commandments. The second commandment has a
link to the evils of lookup fields:

http://www.mvps.org/access/lookupfields.htm

Rest assured that your data is safe and sound when using proper keys instead
of text. A query will allow you to link the actual value.

Relational databases are (or should be) mathematically efficient. Storing a
4 byte key is much more efficient that storing 20 to 30 bytes of data.

As an added benefit, by storing the key you only need to change the data in
1 place instead of repeatedly. Think about this: Suppose you had names in
your database for a man named Smith and a man named Smyth. Now you need to
add a new one and mistakenly enter "Smyth" instead of "Smith". How would you
fix it? No query would work because of the properly named Smythes. You'd
have to check each place the name occurred and fix it. With a properly
designed relational table, you'd fix the 1 wrong entry.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"KimC" <KimC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3FABCE1C-8C90-4E1A-90B5-C36B4BEB00E5@xxxxxxxxxxxxxxxx
Is there any way to preserve the value associated with the foreign key, or
do
I have to enter all the data again into the new Text Box?

"Rick Brandt" wrote:

KimC wrote:
I have a database with a lookup field I created with the Wizard. Now
I want to get rid of the lookup key value that is stored and instead
store the actual value. Is that possible?

In design view of the table, select that field then go to the bottom of
the
grid and you should see two tabs "General" and "Lookup". Go to the Lookup
tab and change the Display Control to "Text Box".

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com





.



Relevant Pages

  • RE: Userform to add and update a table
    ... One of the most common scenarios in application development is to display ... the walkthrough illustrates many of the basic ... Access to a server with the Pubs SQL Server sample database. ... Creating the Windows Form. ...
    (microsoft.public.sqlserver.programming)
  • Re: Picture property for Access 2K forms
    ... and it works great...until you look at the database size involved. ... or by simply scaling down the image display in the ... > supported by those filters. ... To associate a graphic file with an OLE Server, ...
    (microsoft.public.access.devtoolkits)
  • Re: Unknown Maiden Name [WAS how-to ruin a perfectly good FGS]
    ... through at the beginning of my database, ... or display your information in the fields you intended for them. ... the names in a manner you didn't intend and the meaning has become ... If my data is on the Internet and people don't understand it, ...
    (soc.genealogy.methods)
  • Re: webviewer background image from filemaker container field
    ... It is not elegant or simple the moment you factor in how a webviewer ... passes the result back to FM to display. ... info out of the schema of the database. ... And the quality of advice in books and formal filemaker education is ...
    (comp.databases.filemaker)
  • RE: Requery on command button not working
    ... Are these calculations coming from "across the ... See http://www.QBuilt.com for all your database needs. ... >> The CPU is busy executing your request. ... >>> buttons the intention is to display the releveant data for that period. ...
    (microsoft.public.access.forms)

Quantcast