Dim RSID
Dim MaxID
Set RSID = CreateObject("ADODB.Recordset")
Set MaxID = CreateObject("ADODB.Recordset")
MaxID = conn.Execute("Select MAX(bidderid)+1 from bidders")
conn.Execute "Insert into bidders(bidderid,biddername, password, " _
& "emailaddress, address, csz, phonenumber) values (" _
& MaxID("bidderid") & "" _
& "'" & TheRequest.Form("Username") & "', " _
& "'" & TheRequest.Form("Password") & "', " _
& "'" & TheRequest.Form("EmailAddress") & "', " _
& "'" & TheRequest.Form("Address") & "', " _
& "'" & TheRequest.Form("CSZ") & "', " _
& "'" & TheRequest.Form("PhoneNumber") & "')"
Set RSID = conn.Execute("Select Max(bidderid) as MaxID " _
& "from bidders")
TheSession("BidderID") = RSID("MaxID")
End Sub
Error Type:
ADODB.Fields (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
/Register_ID.asp, line 7
Dim MaxID
Set RSID = CreateObject("ADODB.Recordset")
Set MaxID = CreateObject("ADODB.Recordset")
MaxID = conn.Execute("Select MAX(bidderid)+1 from bidders")
conn.Execute "Insert into bidders(bidderid,biddername, password, " _
& "emailaddress, address, csz, phonenumber) values (" _
& MaxID("bidderid") & "" _
& "'" & TheRequest.Form("Username") & "', " _
& "'" & TheRequest.Form("Password") & "', " _
& "'" & TheRequest.Form("EmailAddress") & "', " _
& "'" & TheRequest.Form("Address") & "', " _
& "'" & TheRequest.Form("CSZ") & "', " _
& "'" & TheRequest.Form("PhoneNumber") & "')"
Set RSID = conn.Execute("Select Max(bidderid) as MaxID " _
& "from bidders")
TheSession("BidderID") = RSID("MaxID")
End Sub
Error Type:
ADODB.Fields (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
/Register_ID.asp, line 7