Hi all
I am trying to create a simple database to keep track of employee Car Insurances and MOT information.
I am trying to create a query that will show me the following:
When the field "motexpiry" is Empty OR has a date within 30 days from todays date (including if today's date is in the field) OR the date is in the past.
It also needs to show records with the same criteria for the field "insuranceexpiry".
And needs to show records where the field "cowensform" is blank.
These are all OR queries, so that as long as ONE of all of those criteria is met, the record shows up.
Here is what I have so far, which doesn't seem to work:
Once that query works, I need a very similar query but only showing records where one or more of those criteria is met, but only if the record also has "Oldham" in the "area" field.
I can then copy that query and edit the "Oldham" bit to have a query for each of our area offices.
I tried putting "Oldham" in the criteria line of the area field in the query design, but it seemed to have no affect.
Any help you can give me would be great, and if I have been confusing or not clear enough please ask for clarification!
I should point out, the -365 criteria is because I didn't know how to tell it to look for any date in the past, so it was meant as a workaround....
I am trying to create a simple database to keep track of employee Car Insurances and MOT information.
I am trying to create a query that will show me the following:
When the field "motexpiry" is Empty OR has a date within 30 days from todays date (including if today's date is in the field) OR the date is in the past.
It also needs to show records with the same criteria for the field "insuranceexpiry".
And needs to show records where the field "cowensform" is blank.
These are all OR queries, so that as long as ONE of all of those criteria is met, the record shows up.
Here is what I have so far, which doesn't seem to work:

Once that query works, I need a very similar query but only showing records where one or more of those criteria is met, but only if the record also has "Oldham" in the "area" field.
I can then copy that query and edit the "Oldham" bit to have a query for each of our area offices.
I tried putting "Oldham" in the criteria line of the area field in the query design, but it seemed to have no affect.
Any help you can give me would be great, and if I have been confusing or not clear enough please ask for clarification!
I should point out, the -365 criteria is because I didn't know how to tell it to look for any date in the past, so it was meant as a workaround....
Last edited: