adamsoderqvist
Programmer
I have a sort of admin area for a forum. The admin is supposed to be able to update former messages in the DB (Access, BTW). It works allright, BUT for some reason some posts wont (while some works perfectly! This is the err-msg I get:
"Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Query-based update failed because the row to update could not be found."
Now, the row is there but still the message!
This is the code used:
'Declare recordset object...
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
Dim strSQL
strSQL = "SELECT * FROM tblForum WHERE ForumID=" &
Request.QueryString("PostID"
'Open the database and get the requested info!
objRS.Open strSQL, objConn, , adLockOptimistic
'Declare var's for message info...
strMessage = Request("NewMsg"
'..and update the database!
objRS("Message"
= strMessage
objRS.Update
Does anyone know?
//thanx
"Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Query-based update failed because the row to update could not be found."
Now, the row is there but still the message!
This is the code used:
'Declare recordset object...
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
Dim strSQL
strSQL = "SELECT * FROM tblForum WHERE ForumID=" &
Request.QueryString("PostID"
'Open the database and get the requested info!
objRS.Open strSQL, objConn, , adLockOptimistic
'Declare var's for message info...
strMessage = Request("NewMsg"
'..and update the database!
objRS("Message"
objRS.Update
Does anyone know?
//thanx