Autonumber fields in MSAccess are assigned after the record is inserted, so there's no way to know what the ID will be. Try asking this question in the Access forum.
Not really, since if it's a multi-user database, someone could have clicked their "Save" button immediately after you, and you'd end up with their Identity (autonumber) value. If you use ADO, it stores the last identity value on a per-connection basis. You can retrieve it with a simple "SELECT @@IDENTITY" query. Unfortunately, MS-Access doesn't offer this feature.
As far as I'm concerned, there is no reason to use MS-Access for new development, since the MSDE (desktop edition of SQL Server) is available, and is much more powerful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.