speece
03-22-2007, 04:26 PM
Hello,
I'm trying to update the customer's data in Access database from asp page.
But it seems like the following statement has an syntax error.
Here's the code.
StrSQL = "UPDATE tbl_users_cdn SET BusinessName='" &BusinessName & "', UserName='" &UserName & "', UserPassword='" &UserPassword & "', " & _
"Address='" &Address & "', Tel='" &Tel & "', Fax='" &Fax &"', Email='" &Email &"' WHERE ID= " & ID
Here's the error message.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'ID='.
If somebody can tell me what's wrong in this code, I'd really appreciate it.
I'm trying to update the customer's data in Access database from asp page.
But it seems like the following statement has an syntax error.
Here's the code.
StrSQL = "UPDATE tbl_users_cdn SET BusinessName='" &BusinessName & "', UserName='" &UserName & "', UserPassword='" &UserPassword & "', " & _
"Address='" &Address & "', Tel='" &Tel & "', Fax='" &Fax &"', Email='" &Email &"' WHERE ID= " & ID
Here's the error message.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'ID='.
If somebody can tell me what's wrong in this code, I'd really appreciate it.