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

Print LastFullMonth in Report Title 2

Status
Not open for further replies.

loveyoursite

Technical User
Apr 14, 2005
100
US
CRV10 - I have a termination report that when run will generate a list of employees with a termination date is in the period LastFullMonth. So if I run the report on any day during a month, it will always give me the previous full month.

Could someone please tell me how to get the LastFullMonth and year printed in the report title? I'm looking for something like April 2005 Terminations.

Thanks!
 
Try:

monthname(month(minimum(lastfullmonth)))& " " & year(lastfullmonth)

Note that you can use minimum and maximum against ranges, so if you wanted the actual dates you'd simply use:

minimum(lastfullmonth)& " to "& maximum(lastfullmonth)

-k
 
I should have qualified in case your numeric settings differ from mine:

monthname(month(minimum(lastfullmonth)))& " " & totext(year(lastfullmonth),0,"")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top