Last 7 days Date() - 7

livvie

Registered User.
Local time
Today, 06:16
Joined
May 7, 2004
Messages
158
I need data for the last 7 days to be returned in a query - how do I do this using the query grid ? I have tried date() - 7 in the criteria column of the date field but it doesn't allow this
 
In the Criteria box try:

Between Date() and Date() -7
 
I'm using Access 2003 and adp and I get the erroe. Date is not a recognised function name.
 
Pat Hartman said:
Make sure that your references are ok. This is a symptom of that problem.

Date() is a valid function and is different from Now(). You may get incorrect results if you interject time of day into a date range selection.


Sorry Pat what do you mean by my references ?
 

Users who are viewing this thread

Back
Top Bottom