1

I have two tables in access 2013"2017FrenchProjectData" and "NewModes" I am trying to use the 'invoicemode / service level' column that is in both fields to update the 'French Project Mode' that is only in the New Modes table. I am using the below however i keep getting a syntax error (missing operator) message.

UPDATE     [2017FrenchProjectData]
SET        [2017FrenchProjectData].[FrenchProjectMode]=newmodes.[frenchprojectmode]
          ,[2017FrenchProjectData].[BasicMode]=[newmodes].[modedesc]
FROM       [2017FrenchProjectData]
INNER JOIN NewModes 
ON         2017FrenchProjectData.[ Invoice Mode / Service Level]=Newmodes.[ Invoice Mode / Service Level]
1
  • I believe the syntax for Access requires the INNER JOIN after the SET with no FROM. Commented Jan 16, 2018 at 18:47

1 Answer 1

1

The UPDATE syntax for Access is a little curious. It doesn't have a From clause. Instead, tables and joins are specified after specifying UPDATE:

UPDATE     [2017FrenchProjectData]
INNER JOIN NewModes 
ON         [2017FrenchProjectData].[ Invoice Mode / Service Level]=Newmodes.[ Invoice Mode / Service Level]
SET        [2017FrenchProjectData].[FrenchProjectMode]=newmodes.[frenchprojectmode]
          ,[2017FrenchProjectData].[BasicMode]=[newmodes].[modedesc]
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, Erik. It seems to be not liking the ON command as it gave me the synax error after adjusting to the above. I am getting "Syntax Error (Missing operator) in query expression '2017FrenchProjectData.[Invoice Mode / Service Level]=Newmodes.[invoice Mode / Service Level]
Well, you have some weird (and likely incorrect) column names. Everything inside the square brackets is space sensitive, so your column names start with a space, then the text invoice mode, a space, a forward slash, another space, and then the text service level

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.