Hey all,
I'm stuffed if I can find this error. Here is the UDPATE code. It comes from Dr Devs pages
The error I'm getting is:
Can anybody find the syntax error???
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I'm stuffed if I can find this error. Here is the UDPATE code. It comes from Dr Devs pages
Code:
<%
If Request("UDBtn") <> "" Then
intRecIDs = Replace(Request("hidRecID"), "*", "")
arrRecIDs = Split(intRecIDs, ", ")
For i = 0 to Ubound(arrRecIDs)
DESC= Replace(Request("txtDesc" & arrRecIDs(i)), "'", "''")
CAT= Replace(Request("cboCat" & arrRecIDs(i)), "'", "''")
Set commUpdate = Server.CreateObject ("ADODB.Command")
commUpdate.ActiveConnection = MM_School_STRING
commUpdate.CommandText = "UPDATE photoTBL SET Desc = '"&DESC&"', category = '"&CAT&"' WHERE PhotoID = " & arrRecIDs(i)
commUpdate.CommandType = 1
commUpdate.CommandTimeout = 0
commUpdate.Prepared = true
commUpdate.Execute()
Next
Response.Redirect("RDPhotoList.asp")
End If
%>
The error I'm getting is:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
/ccc/admin/photos/photolist.asp, line 162
Can anybody find the syntax error???
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."