Please forgive me if I have asked a common question, but Dejanews was no
help (yes I looked :> )
If I am using an SQL insert inside of VB with dao for instance connected via
ODBC to sqlserver7 database, how do I get the value of the identity or
autoincrement field as the record is added. I realize that using the
.addnew method on the recordset will make the value of the identity field
immediately available. However I want to use the .execute method with the
database i.e db.execute("INSERT " & yada yada yada) Now, that I have just
executed the insert statement, how can I get the value of the AutoNumber
field that is a part of that record. I can't just look at the last record
as I have 25 concurrent users all adding records and by the time I re-query,
I may have an additional 25 records on top of the one just added in this
example.
Please help me.
Chris
remove the .no.Spam to make it work