Created
May 1, 2014 18:45
-
-
Save wizard04wsu/11458690 to your computer and use it in GitHub Desktop.
Get ID of last inserted record in Access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Get the value of the autonumber field for the last record inserted into an Access database via the current connection. | |
set rst = objConn.Execute("SELECT @@IDENTITY") | |
id = rst(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment