Different Date Ranges...confirm

MSherfey

Registered User.
Local time
Today, 04:01
Joined
Mar 19, 2009
Messages
103
I'm doing a simple query to pull some transactions out of a table which fall into different ranges. In the first range all I want is from today to 90 days from now.

In the Criteria field for the 'Expiration Date' I used:

>=Date() AND <=DATE()+90. Will this work?

For 91-180 days I used:
>=Date+91 AND <=DATE()+180

Thanks!
 
I'm doing a simple query to pull some transactions out of a table which fall into different ranges. In the first range all I want is from today to 90 days from now.

In the Criteria field for the 'Expiration Date' I used:

>=Date() AND <=DATE()+90. Will this work?

For 91-180 days I used:
>=Date+91 AND <=DATE()+180

Thanks!

What you have done used should work fine and do what you want. You also might want to consider using the BETWEEN keyword as an alternative (Syntax BETWEEN {StartDate} And {EndDate}).
 
Thanks. It seemed too simple so I had to check :)
 

Users who are viewing this thread

Back
Top Bottom