Queries (Older than X date)

kacey8

Registered User.
Local time
Today, 00:20
Joined
Jun 12, 2014
Messages
180
Hi All,

I currently have a query set up which responds and filters by the date.

I use the current code in the criteria on the query for todays date less 7 days

Code:
DateAdd("d",-7,Date())

This works perfectly and I had no problem with it. However I need to adjust the criteria so it is less than 7days ago OR OLDER....

How would I go about doing that?
 
Put a less than sign in front of the DateAdd function like.
Code:
< DateAdd("d", -7, Date())
 
He Shoots, He Scores and by golly that was the quickest reply I have ever seen ;)
 
Ha Ha ! You're welcome. Glad to be of help ! :)
 
tbh with the amount I have been using access enough I should've known it :/
 

Users who are viewing this thread

Back
Top Bottom