troubleshooting Question

help with AND/OR query.

Avatar of Pau Lo
Pau Lo asked on
DatabasesMicrosoft Access
1 Comment1 Solution37 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Lukasz Zielinski
software developer
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros