Link to home
Start Free TrialLog in
Avatar of stephenlecomptejr
stephenlecomptejrFlag for United States of America

asked on

Run-time error '3144' - syntax error for a SQL statement in Microsoft Access 2003

Having trouble with the following SQL statement.  Microsoft Access 2003 keeps giving me Run-time error '3144' - syntax error in update statement with the following:  The [Room_Number] field has a data type of text with field size of 50 and [Updated] field is a yes/no.

UPDATE [PROJ_RM] SET [Room_Number] = '1.000.00.L', SET [Updated] = True WHERE [PROJ_RM].[Room_Number] = '1S-2' AND [PROJ_RM].[Updated] = False
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the keyword SET is to be used ONCE:

UPDATE [PROJ_RM] SET [Room_Number] = '1.000.00.L', [Updated] = True
WHERE [PROJ_RM].[Room_Number] = '1S-2' AND [PROJ_RM].[Updated] = False