Hi
I am just writing an update that works with various parameters and variables and I don't know how to get this update routine to update just the one field. I have tried as follows but it doesn't work.
Set db = Session("db"
Set rsUpdate = Session("rs"
sTableName = Session("sTableName"
sOK = Session("svOK"
sKey = Session("pKey"
sSQL = "SELECT * FROM " & sTableName & " WHERE " & sKey & " = " & Request.QueryString("record"
set rsUpdate = Server.CreateObject("ADODB.Recordset"
rsUpdate.Open sSQL, db, adOpenDynamic, adLockOptimistic, adCmdText
*****How do I get it to update the field held in the parameter sOK --
rsUpdate.Fields("sOK"
="1"
rsUpdate.Update
TIA
Struth
"It's life Jim, but not as we know it!"
I am just writing an update that works with various parameters and variables and I don't know how to get this update routine to update just the one field. I have tried as follows but it doesn't work.
Set db = Session("db"
Set rsUpdate = Session("rs"
sTableName = Session("sTableName"
sOK = Session("svOK"
sKey = Session("pKey"
sSQL = "SELECT * FROM " & sTableName & " WHERE " & sKey & " = " & Request.QueryString("record"
set rsUpdate = Server.CreateObject("ADODB.Recordset"
rsUpdate.Open sSQL, db, adOpenDynamic, adLockOptimistic, adCmdText
*****How do I get it to update the field held in the parameter sOK --
rsUpdate.Fields("sOK"
rsUpdate.Update
TIA
Struth
"It's life Jim, but not as we know it!"