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

Display last month's date value in report header

Status
Not open for further replies.

rhammond

Programmer
Dec 9, 2002
21
US
I'm trying to display in the header of my report the value for last month (in the following format - "December 2002"). How can I do this, especially since I'm not actually reading this value from a particular database value?
 
Create a formula which contains:

dateadd('m',-1,currentdate)

Now right click it and select format field.

Select Customize and under the Format Select the text for the month, None for the day, and 1999 for the year.

Under Seperators place a space.

If it's a datetime field, set all of the time options to None, and the AM/PM to blank


-k kai@informeddatadecisions.com
 
That was it! I knew it had to be something simple like that, but sometimes staring at all the formulas makes you a bit blind...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top