Retrieve Records for the Past Year

depawl

Registered User.
Local time
Today, 12:46
Joined
May 19, 2007
Messages
144
I trying to create a query that just returns all of the records in my database for the past year. I've tried to somehow do it using the date() function but haven't had much luck yet.
Any help is most appreciated.
 
Try these in the criteria cell of your date field:

For a full year back from today's date:

between dateadd("yyyy", -1, date()) and date()

For the current year:

between dateserial(year(date()),1,1) and date()


HTH - Bob
 
Thanks guys. As far as I can see right now, this function in the criteria of the date field seems to work:
>Date()-365
Appreciate the help.
Dennis
 

Users who are viewing this thread

Back
Top Bottom