Sometimes you need the learn new record number while your are adding a new record. Following example adds a new records to a table and gets the the autonumber or identity of that records. Author: Dotnetindex.com Code: ASP 3.0 & VBScript
Active Server Corner has published "@@IDENTITY Crisis," an article that takes a look at what identity columns are and things you should know about them. Author: Manohar Kamath Code: ASP 2.0 & VBScript
If you are using a stored procedure you can return the value of the Identity field (Autonumber for access users) for the record just added using '@@identity' but how do you do it outside of a stored procedure. Author: Chris Garrett Code: ASP 3.0 & VBScript