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

docmd.runsql("Insert...")

Status
Not open for further replies.

aw23

Programmer
Nov 26, 2003
544
IL
Is there a way to pick up the autonumber of a new record that i added by docmd.runsql ("Insert...") right after I add it without having to find the record?
 
Hi

I am not sure you can do it with docmd.runSQL, but if you use ado connection to execute the SQL, I believe you can use %indentity% to get the value, cannot recall the exact syntax and I do not have access to my collection of useful code snippits at present cos I am on a client site

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top