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

display current date in parameter date field Crystal X1

Status
Not open for further replies.

orangeco

MIS
Joined
Sep 23, 2002
Messages
2
Location
US
Hi All,

Older versions of Crystal allowed the 'current date' to default in a parameter field. Crystal X1 doesn't seem to allow this anymore. I would like the 'current date' to display in a parameter date field because my report is run with the current date mostly, but sometimes a different date is needed/entered. Is there any way to cause the 'current date' to display in a parameter when displayed?
Thanks.
Maurice
 
I don't think there's a way of making the currentdate the default. You can use a value like 9999-09-09 and then set up your record selection formula like this:

if {?date} <> date(9999,09,09) then
{table.date} = {?date} else
if {?date} = date(9999,09,09) then
{table.date} = currentdate

You can then use the default date in a display formula like this:

if {?date} = date(9999,09,09) then currentdate else
{?date}

-LB
 
This was such a stupid change in CR. Way to go Business Objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top