Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Between Criteria 2

Status
Not open for further replies.

needmoremoney

Technical User
Mar 30, 2005
123
0
0
US
Hello..

I'm trying to get a query to work but it's not working so well.

I have this for my date criteria.
=Now() or >Now()-14

I'm trying to pull data that are 1 to 13days old but if it is 14 days old, then I want to exclude it.

My example is still pulling for dates that are beyond the 14 days. Any help thanks much..

 
The criteria line should look like this:(No = sign)
>(Date()-14) And <Date()
 
Hi -

Copy/paste this to the criteria cell of your date field:
Code:
Between Date() And Date()-13

The Now() function includes both date and time. Better to stick with the Date() function which provides just what it says.

HTH - Bob
 
Thanks all,

I got it to work now. I didn't know that about the Date and Now. Thanks Raskew.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top