Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

primary keys

ResolvedVersion 2007

George has attended:
Access Intermediate course
Access Intermediate course

PRIMARY KEYS

WHEN WOULD YOU USE MULTIPLE PRIMARY KEYS AND GIVE EXAMPLES

RE: PRIMARY KEYS

Hi George

Thank you for your question

Multiple or compound keys are used in place of an autonumber field, where there is no one existing field that is unique to individual records.

For example if you had a staff database with no unique fields you might decide to use a key compounded out of first name, second name and date of birth fields

The important consideration would be the uniquness of each combination. In the above example the developer would have to consider the likelihood of two people sharing the same first and second names as well as a date of birth

Hope this helps

Regards

Stephen

Thu 5 Mar 2009: Automatically marked as resolved.

Access tip:

Hiding Multiple Table columns

If you want to hide non-adjacent Access table columns. In Datasheet view, open the table that contains the columns you want to hide.

On the Format menu, click Unhide Columns.
In the Unhide Columns dialog box, clear the check box next to the name of each column you want to hide.
Click Close.

This method makes having to use the Hide Columns command repeatedly unnecessary

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.