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

Showing date parameter 2

Status
Not open for further replies.

Saint1234

Programmer
Feb 18, 2004
25
0
0
IE
Hi all,
I am using crystals parameters. I was wondering I have it setup to select data within a date range. How can I show this range on the report? Thanks in advance.
G
 
Try this formula:

"Date Range: " + ToText(minimum({?DateRange}), "MM/dd/yyyy") + ' to ' + ToText(maximum({?DateRange}), "MM/dd/yyyy")

-dave
 
You could create a formula similar to the following:
Code:
"Date Range is from "
& Minimum({?YourDateRangeParameter})
& " to "
& Maximum({?YourDateRangeParameter})

This will show the dates in a default format.
If you wish to modify the formatting of the dates, then use ToText or CStr to give the date whatever formatting you wish.

eg
Code:
"Date Range is from "
& ToText( Minimum({?YourDateRangeParameter}), "MMM-dd-yyyy")
& " to "
& ToText( Maximum({?YourDateRangeParameter}), "MMM-dd-yyyy")

HTH


Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top