Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab controls with subforms - fill in ID number automatically

Status
Not open for further replies.

deovolente

Technical User
Nov 9, 2000
9
US
I am probably missing something really simple here, but I have no idea what it might be. I have a data entry form that I created with tab controls that contain subforms. Four tables are represented and three of the tables are linked to the main table by an autonumber field. I know that the fields in the subforms have to be "number" fields to accept autonumber values. Everything works fine when you are in the main table itself and you use the subdatasheet view, but when you try to enter new records from the form, you get an error message. How can I get Access to fill in the ID number on the subforms automatically?
Ex: The main table is the Customer table which has an autonumber ID field. There are also tables for Demographic information, Comments, and Orders. How can I get that autonumber to sync up with the subforms?
 
You need to go to the properties of the subform control. Under the data tab, you need to set your link master field and link child field to the two autonumber fields of the two tables.

Mike Rohde
rohdem@marshallengines.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top