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

How do I display Date Range parameters in my headers? 2

Status
Not open for further replies.

krpurcel

IS-IT--Management
Dec 1, 2003
77
US
I have a date range parameter that pops up when you run the report and asks for the starting and ending dates for the data. I want to show these starting and ending dates in the header of the report, but am not sure how to do that. I tried putting the parameter itself in the header, but that doesn't work.

Can someone please point me in the right direction?
 
Do you have an additional formula for your dates? If you do, you can use this formula (My date formulas use "Y" for yesterday, "W" for last week, etc...):

IF {?StartDate} = "Y" OR {@StartDate} = {@EndDate}
THEN "Business Day: " & ({@EndDate})
ELSE "Report Includes : " & ({@StartDate}) & " thru " & ({@EndDate})

If you don't, then try:

IF {?StartDate} = {?EndDate}
THEN "Business Day: " & ({?StartDate})
ELSE "Report Includes Service Requests Created: " & ({?StartDate}) & " thru " & ({?EndDate})
 
Range parameters, by themselves, will never display.

Create a formula such as this, however, and your range will appear:

totext(minimum({?Dates})) + " to " + totext(maximum({?Dates}))
 
Thanks for the great replies! I appreciate it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top