Max on Date Field - 7 Days

Bombshell Disaster

Registered User.
Local time
Today, 09:01
Joined
Nov 21, 2007
Messages
32
Hi All

I want to do an unmatched query, but first I need to set up my criteria. I have a date field and I need to find Max of Date Field which I can do with a Totals query. I then want to find records with a Max of Date Field - 7 days, this is where I am going round in circles. Then I will do the unmatched query.

Any pointers please?
 
You will need to use a series of cascading queries.

You've got your Query to find the Max of Date.

Now you can create a second query. Now put table and your Max query in the top of the Query Builder grid, and use the following as criteria
Code:
[QueryName].[MaxOfDate] - 7

It should look something like;
attachment.php
 

Attachments

  • Capture.PNG
    Capture.PNG
    16.1 KB · Views: 364
...and then use the results of that query in your unmatched query.
 

Users who are viewing this thread

Back
Top Bottom