cancel
Showing results for 
Search instead for 
Did you mean: 

CR 2008: Setting currrentdate as default begin date in a date range paramet

Former Member
0 Kudos

I have a Crystal Report with a date range parameter.

How do I set the Begin Date to be todays date ?

I am using a Universe as the data source.

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

It is absolutely useless solution, for the questions is how to display curent date as a default value for a prompt of date type.

Edited by: Doug Muir on Nov 17, 2009 4:53 PM

Former Member
0 Kudos

Hi Rajesh,

1) Is the prompt a constant value?

If yes then type "1900/01/01" in the from value as default value. And in the report selection formula should look similar to this :

DateVar DateParamValue:-

(

If = Date(1900,1,1) Then

DateParamValue := CurrentDate

Else

DateParamValue := {?DateParam};

{Table.DateField} = DateParamValue;

)