-
Access - Identity Key
Hello,
Is it possible to retrieve the Primary Key(Autonumber) for a new record
after insertion? How can I pass values to an append query stored in the
access database and get the primary key id in return?
Thanks,
Aaron
-
Re: Access - Identity Key
Dear Aaron:
If I understood your question correctly,
add this code
adodc1.recordset.requery
This should bring up primary key(autonumber) on to the form.
You should also need to add additional code for making sure
adodc1.recordset.movelast
This will move the recordset and user can see the Primary key.
I hope this is helpful.
Let me know.
Venu
"Aaron Coombs" <a.coombs@home.com> wrote:
>Hello,
>
>Is it possible to retrieve the Primary Key(Autonumber) for a new record
>after insertion? How can I pass values to an append query stored in the
>access database and get the primary key id in return?
>
>Thanks,
>
>Aaron
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks