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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Information for the previous month 1

Status
Not open for further replies.

dk99

MIS
Jun 20, 2003
76
GB
Is there a way I can get a query to pull out information for the previous month.

ie. if I run the query on the 1st June I need it to pull out information for 1st - 31st May.

I cant use <Now()-30 because some months have 31 days so any ideas will be appreciated.
 
In the criteria cell use:
>= Dateserial(year(now),month(now)-1,1) and < Dateserial(year(now),month(now),1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top