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!

Inserting to 2 related tables with Primary Key Autonumber

Status
Not open for further replies.

addled

Programmer
Dec 19, 2007
1
GB
I have 2 related tables in a one-to-many relationship, where the foreign key in the many table is based on the other table Autonumber primary key. If I want to write concurrently to the 2 tables, how can I identify the value of the primary key autonumber to be placed in the related foreign key, or is it not possible?
Help gratefully appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top