Basic Question : Primary Key versus NoDuplicates

Swamp Thing

Active Member
Joined
Aug 16, 2002
Messages
313
What is the difference in Access' behavior between these two cases:

1. Setting a certain field as a primary key
2. Setting it to Indexed-No-Duplicates

In both cases, that end of the join is displayed as "one-to-.."
In both cases, the values are unique.

So how do they differ in practice?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Well I guess you could have more than one column set to Yes (No Duplicates) whereas you can only designate one primary key. Also, when you compact and repair each table will be sorted by primary key. It's also easy for others to understand your database if you have correctly specified a primary key for each table. As for performance, I'd be surprised if there is a great difference between the two although you'd need to do some testing to be certain.
 
Upvote 0

Forum statistics

Threads
1,221,579
Messages
6,160,616
Members
451,658
Latest member
NghiVmexgdhh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top