Update Query Syntax Error

dreid1011

Well-known Member
Joined
Jun 4, 2015
Messages
3,614
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I am working on a seemingly very simple update query and I am receiving a Syntax Error. So far, my searches have not found similar issues, so at the moment, I am lost.

The query was originally an Append query, then I clicked on the Update button on the ribbon. This is the SQL it came with:

Rich (BB code):
UPDATE ASSESS_V_MS_SPECIAL_ASSESSMENT SET 
WHERE (((ASSESS_V_MS_SPECIAL_ASSESSMENT.Year)=2018 Or (ASSESS_V_MS_SPECIAL_ASSESSMENT.Year)=2019));

I made a slight adjustment to match my table name:

Rich (BB code):
UPDATE ASSESS_V_MS_SPECIAL_ASSESSMENTx1 SET 
WHERE (((ASSESS_V_MS_SPECIAL_ASSESSMENT.Year)=2018 Or (ASSESS_V_MS_SPECIAL_ASSESSMENT.Year)=2019));

When I receive the error, "WHERE" is highlighted. I've tried removing the () and adding [], but no luck.

Also, while I'm at it, a couple questions:

Is SET necessary as well? If it is, I'm not sure what it should be.

Can an Update query add/remove rows?

Thank you.
 
The powers that be fixed the source table. Thank you for the suggestions though.
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,981
Messages
6,175,768
Members
452,668
Latest member
mrider123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top