If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Retrieve NewID after Insert (ASP + VB + ACCESS)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-07, 06:53
christyxo christyxo is offline
Registered User
 
Join Date: Oct 2003
Location: London
Posts: 291
Question Retrieve NewID after Insert (ASP + VB + ACCESS)

Hi Guys,

I've been asked to create an online evaluation form and I've pretty much designed it now but i'm having trouble now in tracking what the unique number is of a record I've just created. I've looked and looked through the web but I have no knowledge of ASP pages so I'm really struggling here.

I've attached a text document which documents my script section.

Could someone please have a look at this and see whether they could help me to create a sequence which would insert a record, create the new ID, and store the new ID as something which I can access on another page (or at the very least, print to screen).

I know this is asking a lot but from knowing nothing about ASP to getting this point has pretty much used up my capacity for new learning
Attached Files
File Type: txt Evaluation.txt (3.7 KB, 105 views)
Reply With Quote
  #2 (permalink)  
Old 08-28-07, 03:50
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Hmm, well there is a way, but it aint pretty...
This article is the best ASP specific example I can find...

And here is an Access specific article to back up the theory involved (well worth a read!).
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On