Primary Key

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Yes, I commonly used 2 to 3 fields for primary keys.

In Design View of the table, click on the box to the left of the field so that the whole row is highlighted. Then press Control and click the same box for the 2nd primary key, and select "Primary Key". It should show keys next to both fields.
 
Upvote 0
Thanks I was able to do what said, but then when I tried to use one of the primary key fields in a one to many relationship, I was unable too.

Parra
 
Upvote 0
Could you give a detailed example of what it is you are trying to do (examples of your table structures, data, and how you are trying to connect them)?
 
Upvote 0
You would need to use both the primary keys in the join (ie have 2 foreign keys in the joined table).
 
Upvote 0

Forum statistics

Threads
1,221,590
Messages
6,160,666
Members
451,662
Latest member
reelspike

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