Primary Key

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I have a autonumber as a primary key in a one to many relationship.

How do I get the number in the one relationship to appear on the many relationship.

I will enter data in a form based on query.

Any suggestions????

Thanks.
Parra
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
In the related table (the "many" side), you can use the Lookup Wizard to create a field which (1) stores the "one" key and (2) shows user-friendly text. IF the text is not sufficiently useful (eg you see a Surname when you would rather see Surname, Firstname) you cna do this:
Go into Design view on the table.
Select the lookup field in the top half of the grid.
In the bottom half (the Properties section) click the Lookup tab. You can edit the RowSource to convert the Surname to an expression showing the full name instead.
Note: this will create a relationship between the two tables. If there is a pre-existing relationship, go to the Relationships window and delete it. You can then set referential integrity on the new relationship and you should be ready to go.
Now, when you drag your lookup field onto a form, you will automatically have a combo box. Voila!
 
Upvote 0

Forum statistics

Threads
1,221,553
Messages
6,160,468
Members
451,649
Latest member
fahad_ibnfurjan

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