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

Date function

Status
Not open for further replies.

gj0519

MIS
May 8, 2003
69
US
Is there a way that you can tell Access to pull data for the last full month? Like in Crystal Reports there is a function to do this.
Right now I have a parameter set where the user has to manualy enter in the start and end date. I would like for this to be automatic.
Thanks
 
more...

in your query, put a new field
Code:
Expr3: Format([Date],"mmmyy")
and it's criteria:

Code:
Format(DateAdd("m",-1,Date()),"mmmyy")

that will always figure out what 'last month' is, and only choose dates in that month.

g
 
Thanks GingerR,
I will give that a try.

gj0519
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top