Hi Guys... have been stuck on this problem for 4 days now.. just can't seem to solve it. And the problem seems to be an UPDATE statement. This is what the statement looks like and the error:
-------------------------------------------------------------------
Update tdPicUpload SET title='Party', desc='Shreelas 2nd birthday party.1', iso='800', sspeed='30', apature='4.5' WHERE picid ='2005123155615'
Microsoft JET Database Engine error '80040e14'
Syntax error in UPDATE statement.
/_photos/uploadlist.asp, line 29
-------------------------------------------------------------------
Here is the code:
-------------------------------------------------------------------
If Trim(Request.QueryString("action")) = "validate" Then
Call OpenDB()
strSQLInfo = "Update tdPicUpload SET title='"& Request.Form("ftitle")&"', desc='"&Request.Form("fdesc")&"', iso='"& Request.Form("fiso")&"', sspeed='"&Request.Form("fspeed")&"', apature='"&Request.Form("fapature")&"' WHERE picid ='"&Trim(Request.QueryString("picid"))&"'"
Response.Write(strSQLInfo)
Set objRS = objConn.Execute(strSQLInfo,,adCmdText)
Call CloseDB()
End If
-------------------------------------------------------------------
The error is being thrown at Set objRS = objConn.Execute(strSQLInfo,,adCmdText), and I have completely no idea why the problem is here, and why it wont go away. If anyone can find the issue, it would be really appreciated if you could email me at
[email protected]. Thankyou everyone in advance.