forms_are_nightmares
Registered User.
- Local time
- Today, 10:49
- Joined
- Apr 5, 2010
- Messages
- 71
Hello All,
I've created a query that includes a date field (the field is formatted in the table as date/time).
The idea is when the query is run it will only pull records that are 7 days before the current day, e.g., if the query is run on the 12th, it will only show records between the 12th and 5th of the month.
In the query, I added the following code: DateAdd("d",-7,Now())
This doesn't produce any results (there are records in the table that should be returned).
I'm hoping someone either might know what I'm doing wrong or can provide a better solution.
Thanks...
I've created a query that includes a date field (the field is formatted in the table as date/time).
The idea is when the query is run it will only pull records that are 7 days before the current day, e.g., if the query is run on the 12th, it will only show records between the 12th and 5th of the month.
In the query, I added the following code: DateAdd("d",-7,Now())
This doesn't produce any results (there are records in the table that should be returned).
I'm hoping someone either might know what I'm doing wrong or can provide a better solution.
Thanks...