Retrieve record identity from an autonumber field on record insert.

In order to maintain the relationships between database tables or to return the identity of the record they have just created to the user it is necessary to determine the identity of the newly created record. There are many bad examples of how to do this, mainly involving the use of SQL and SELECT MAX(RecordID) to determine the highest record identity value. This article shows a more reliable way to determine the correct identity of the record created.

http://www.drdev.net/article06.htm

Owen Eastwick

I have over a dozen years experience in the IT industry and in the past 5 I have focussed exclusively on web site design and development. I'm familiar with all aspects of web site design from planning through to launch. I specialise in developing dynamic, ASP/VBScript web sites utilising either a Microsoft Access or a SQL Server database back end. I also create logos, artwork and design web site interfaces so I am able to develop a complete web site from “front-end” through to “back-end” if required.

In addition to developing sites directly for clients I also undertake sub-contract projects developing ASP and database solutions for other web site designers. If you've got a rush job and a fast approaching deadline or you've simply reached a seemingly impassable sticking point within a project, get in touch.

Check out my sites for more information:

http://www.drdev.net/
http://www.tdsf.co.uk/

See All Postings From Owen Eastwick >>

Comments

Be the first to write a comment

You must me logged in to write a comment.