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

Getting Identity after SQL-"INSERT"

Status
Not open for further replies.

n0nick

Programmer
Apr 28, 2005
32
0
0
NO
How can I get AutoNumber that Access made for the new post after a INSERT statement, back to the ASP? Im using ADO objects to connect and get data from Access DB.
 
Retrieve the first field returned by a "SELECT @@Identity" recordset (command text).

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I asked the exact same question a couple of days ago...

thread701-1096165

it worked...

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top