What i'm trying to do here is to update the book for each user input PID.
the problem is why i'm unable to update the rest of record, but only able to update the first record?
there is no effect when i try to update other PID, but only able to update the first PID record on db.
below is the code.
Set DB = Server.CreateObject ("ADODB.Connection"
DB.Mode = adModeReadWrite
DB.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + "C:\...abc.db"
Set RS = Server.CreateObject ("ADODB.Recordset"
SQL = "SELECT * FROM Reserve WHERE RID = 'Request(txRID)'"
'RS.Open "SELECT BID,RID FROM Reserve WHERE RID = 'Request(txRID)'", DB, adOpenStatic, adLockPessimistic
RS.Open "Reserve", DB, adOpenStatic, adLockPessimistic
RS ("BID" = Request("Book"
RS.Update
the problem is why i'm unable to update the rest of record, but only able to update the first record?
there is no effect when i try to update other PID, but only able to update the first PID record on db.
below is the code.
Set DB = Server.CreateObject ("ADODB.Connection"
DB.Mode = adModeReadWrite
DB.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + "C:\...abc.db"
Set RS = Server.CreateObject ("ADODB.Recordset"
SQL = "SELECT * FROM Reserve WHERE RID = 'Request(txRID)'"
'RS.Open "SELECT BID,RID FROM Reserve WHERE RID = 'Request(txRID)'", DB, adOpenStatic, adLockPessimistic
RS.Open "Reserve", DB, adOpenStatic, adLockPessimistic
RS ("BID" = Request("Book"
RS.Update