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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert query problem

Status
Not open for further replies.

Bobnz

IS-IT--Management
Aug 19, 2002
116
NZ
I have an insert query that inserts to a table that has an autonumber as pkey, the pkey is auto incremented when query runs. I then want to insert that new pkey value in another table. Both these insert queries run off the same button, after the first query runs I need some code or query that will show the new pkey value in a control on the form so I can then take that value and use it in the second insert query.
Hope this makes sense.

B
 
See if this thread contains what you need thread701-931973.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top