I use date range parameter to select records {?Date}.
How can I print Date range parameter values on the Page Header?
Example: <REPORT NAME>
For Period 01/01/2001 to 05/15/2001
Thank you txkitten ,it was helpful.
I also found another rway to print date range:
"From: " + ToText ( Minimum ( {?Dates} ) ) + " To: " + ToText ( Maximum ( {?Dates} ) )
is the best way to go. What's gonna happen here is that if your maximum date falls behind the "ToDate" parameter entered, when you print out your report it will be confusing for someone not familiar with the dates entered as parameters.
Example:
Dates entered as parameters:
From 10/01/02 to 10/31/02
Actual maximum date in data: 10/20/02
actual minimum date in data: 10/01/02
Thus, we'll get:
You're right about using the min and max data values rather than the actual parameter values. I too would like to use the Date Range parameter, but I've run into the same problem.
I've been using 2 parameters: one for the start date and one for the end date. Then I can display them as txkitten initially described.
Also check out the following link for other information about ranged values: thread149-197103
The formula posted by rosemary returns the maximum of the date range parameter, not the maximum of the dates in the database. It will work. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
You are not returning the min and max of actual data with this formula, but the min and max of the **range value parameters**. Even though there are only 2 values in the range (From Date through ToDate) you have to use minimum and maximum to retrieve.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.