If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I know I could use rs.addnew and rs.update to get the Autonumber.
However, I am using a huge (and I mean it, HUGE SQL statement with if else statements inside), and I wouldn't want to build a whole new procedure using addnew and update. :-( Help!!!
Originally posted by rnealejr Run the "select @@identity" statement after the record has been inserted. You can then reference it using rs(0).
Dear rnealejr!
Thank you so much for the help!!! I think you DO deserve that fifth star! "Select @@Identity" worked!
I will come back again if I have some other issues.
Thank you
Originally posted by rnealejr Run the "select @@identity" statement after the record has been inserted. You can then reference it using rs(0).
Dear rnealejr!
Thank you so much for the help!!! I think you DO deserve that fifth star! "Select @@Identity" worked!
I will come back again if I have some other issues.
Thank you