View previous topic :: View next topic |
Author |
Message |
Scott
Joined: 14 Oct 2004 Posts: 11
|
Posted: Tue Dec 07, 2004 11:20 am Post subject: UPDATE statement error... |
|
|
The following UPDATE SQL statement gives me an error:
Code: |
UPDATE tblCustomers SET FirstName = "Paul", LastName = "Johnson" WHERE ID = 28
|
Here is the error:
Microsoft OLE DB Provider for ODBC Driverserror '80040e14'[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement
The database is MS Access 2000.
What is wrong with my UPDATE statement?
Thanks,
Scott |
|
Back to top |
|
|
trenton
Joined: 17 Nov 2004 Posts: 2
|
Posted: Tue Dec 07, 2004 2:49 pm Post subject: Re: UPDATE statement error... |
|
|
The problem is in the double quotes . Replace all double quotes with single quotes and the UPDATE statement will run without a problem.
Trenton
Scott wrote: | The following UPDATE SQL statement gives me an error:
Code: |
UPDATE tblCustomers SET FirstName = "Paul", LastName = "Johnson" WHERE ID = 28
|
Here is the error:
Microsoft OLE DB Provider for ODBC Driverserror '80040e14'[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement
The database is MS Access 2000.
What is wrong with my UPDATE statement?
Thanks,
Scott |
|
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Tue Dec 07, 2004 3:19 pm Post subject: |
|
|
Yes, using double quotes in a SQL statement is a very common problem .
Just replace the double quotes with single ones and you should be good to go.
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
Scott
Joined: 14 Oct 2004 Posts: 11
|
Posted: Tue Dec 07, 2004 3:28 pm Post subject: |
|
|
Thanks guys
The UPDATE statement work perfect now...
Scott |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|