Primary key query

kimberlin

Registered User.
Local time
Today, 11:44
Joined
Jul 22, 2011
Messages
64
Is it possible to use a word rather than a number as the primary key in a table which then becomes a foreign key when connected to a junction table? My reason for asking is that this would be a limited list of around 20 words and would be more meaningful to the end users if they were doing a search.
 
Possible, yes. Correct, probably not.
 
If you are only going to have 20 values available for the Primary Key, then you will have limited yourself to only having 20 records becasue each primary key value must be unique.
 
I get the bit about the primary key value being unique, but how does it only limit the database to 20 records if the other records in the foreign table are combining any of those 20 words with different information from different fields all the time?
 
The primary key is ideally for the use of Access, not the user/client.
The user/client can interact with forms and behind those forms your queries etc can make use of primary key(s). The client/user see the terms they are familiar with and you optimize queries etc for Access to use the primary key (many will tell you to use autonumber PK).
 
Ok, thanks for that, I can see I've got reams to learn.
 
Thanks for the links, I've bookmarked them for a closer read before bed.
 

Users who are viewing this thread

Back
Top Bottom