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!

Set a Date Parameter To Default

Status
Not open for further replies.

cguyreports

Technical User
Mar 8, 2004
32
US
I am using crystal 8.5 and have a date parameter on a field. Is there anyway to set the parameter to default to the current day?

Thanks so much for any help.
 
You could set a default value for the date parameter to something that no one would ever use.
For example, set the default value to 1990/01/01
Explain in the Prompting Text that if the user leaves the default value, today's date will be used.
Then, in your record selection formula, do something like this:
Code:
{Table.Date} = IIF({?Param}=Date(1990,01,01),CurrentDate,{?Param})


Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top