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!

Query for current month

Status
Not open for further replies.

RJL1

Technical User
Oct 3, 2002
228
0
0
US
I have a query data gathers daily statistics. I would like to query for just the current months data. The field name is date and is formated mm/dd/yyyy (9/3/2002). How can I sorth this data for the current month when I run my report.

Thanks
RJL1
 
Format your date as "mm yyyy" and set it's critera to format(Now(), "mm yyyy")
 
In the query add:

=Between [Enter Beginning Date] and [Enter Ending Date]

to the date field you want to filter on. This will then request the date range you want to look at.

You could also try something like
=Between Now() and DateAdd("m",-1,Now())

Which I think would look back one month from the date you open the query.

Hope this helps
Rob!
 
I like the range option better. Just in case they want to see more that one month.

Thanks
RJL1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top