tuvok
02-05-2002, 12:27 PM
Hi Guys, can you help me out please, i have been looking at this code for hours and still get syntax error.
--------------------------------------------
SQLstmt = "UPDATE domaindetails SET (day, month, year, renewal) VALUES ('" & dayq & "','" & monthq & "','" & yearq & "','" & renewq & "')"
SQLStmt = SQLStmt & " WHERE accountnumber='"& accountnumber & "' "
Set RS = Conn.Execute(SQLStmt)
--------------------------------------------
Error desc. -> [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement
--------------------------------------------
SQLstmt = "UPDATE domaindetails SET (day, month, year, renewal) VALUES ('" & dayq & "','" & monthq & "','" & yearq & "','" & renewq & "')"
SQLStmt = SQLStmt & " WHERE accountnumber='"& accountnumber & "' "
Set RS = Conn.Execute(SQLStmt)
--------------------------------------------
Error desc. -> [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement
