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

Supress all but last 3 months

Status
Not open for further replies.

ddnh

Programmer
Nov 25, 2002
94
US
I have created a chart in the footer of a group based on a date field. Right now it prints for every month for which there is data. I'd like to suppress all but the current month and the previous two. Any suggestion on the formula I should use in the Section Expert Suppress x+2 field?

If the report is run today it should only show the chart for April, March, and February.

 
The datediff function should do it for you.

For your supression formula use:
datediff("m",{date.field},currentdate)>2

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top