Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2004, 07:08 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Insert - Get Record ID

Hello All,

I have the following issue.

I have a web page where I capture event registration data
and insert it into an Access database. This part works fine.
I am trying to find an easy way retrieve the record id of
the newly entered record.

The registration record is inserted into a single Access table
that uses an AutoNumber fields as the primary key.

None of the other data in the record could guarantee a unique
key with which I could lookup the record.

Any information or ideas will be greatly appreciated.

Thanks!

Lou

 
Old March 24th, 2004, 07:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

http://www.adopenstatic.com/Experime...Autonumber.asp
 
Old March 24th, 2004, 11:11 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the quick reply. I will try
this solution (@@IDENITY).

Thanks Again,

Lou







Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Add New Record and Get ID omninewt Classic ASP Databases 5 April 10th, 2008 12:20 PM
Insert Record & retrieve ID gundulf ADO.NET 5 July 12th, 2007 10:03 PM
ASP program How to add new ID for new record kinshuk SQL Server ASP 3 March 21st, 2005 02:43 PM
Insert new record ID levinho Classic ASP Databases 5 January 14th, 2004 12:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.