VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Returning the Autonumber Value when adding records

James N. Wink  (2 Submissions)   Databases/Data Access/DAO/ADO   Visual Basic 3.0   Beginner   Wed 3rd February 2021

When using Autonumber fields in a database for a UID, you might need this value after you add the record, for that record. This is my example of how to get that value back from the database after it is added using DAO or ADO.

Assumes
This is not a complete application, just code snippets. I expect that anyone using this knows that they have to set references to DAO and ADO, and know how to connect to a database using these objects.

Side Effects
none.

Rate Returning the Autonumber Value when adding records (7(7 Vote))
Returning the Autonumber Value when adding records.bas

Returning the Autonumber Value when adding records Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters