|
xterradane -> Passing Autonumber (1/2/2002 21:42:49)
|
I need to submit a form and then use the Access Autonumber to be passed to the next page, I guess as NewPage.asp?ID= But, how do I code it to get the id after adding? I tried using the following, but I must be doing something wrong: rsJob.Update NewID=rsJob(0) Dim strName, strValue For each strField in rsJob.Fields strName = strField.Name strValue = strField.Value Session(strName) = strValue Next Session("blnValidUser") = True rsJob.Close Set rsJob=Nothing Response.Clear Response.Redirect "Invoice.asp?ID='&NewID&'" Thanks, Gail
|
|
|
|