Avatar of Pau Lo
Pau Lo asked on

help with AND/OR query.

I am trying to get a query correct to update some rows of data and could do with some guidance.
Currently the syntax I have is:

UPDATE tblJ SET tblJ.Active = "false"
WHERE (((tblJ.FRD)<#4/1/2020#)) OR (((tblJ.JCNR)<#4/1/2020#));

The first bit of the WHERE is fine with the OR function as above.
But I also need to add an AND on top of this to further filter the data before it runs the update.
The additional part would be

(((tblJ.Year)="2018/19" Or (tblJ.Year)="2019/20"))

How would I merge the two so it captures and updates everything I need in the above.
DatabasesMicrosoft Access

Avatar of undefined
Last Comment
Lukasz Zielinski

8/22/2022 - Mon
Lukasz Zielinski

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.