=now () - 90

G

Gary

Need some help returning records in a query. I have a field with dates and I
only want to return the records that have a date of either today or as far
back as 90 days from today.

Should be an easy one... I hope...
GFS
 
J

John Spencer MVP

Set the criteria to

Between DateAdd("d",-90,Date()) and Date()

If your field has a time component then use
= DateAdd("d",-90,Date()) AND < DateAdd("d",1,Date())

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top