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

Range Default Parameter Help

Status
Not open for further replies.

RichardM140

Programmer
Nov 17, 2003
8
US
Hi,

I reviewed several discussion on this site about default value for date parameters, but I haven't found the answer I've been looking for yet.

I have a date range parameter and I would like to default the "Start of Range" value to CurrentDate minus 7 and the "End Of Range" value to CurrentDate. Then of course the user can change the values to fit their needs if necessary. The problem is that I need the default values to display when the parameter prompt is displayed.

I've seen a couple examples where I place an out of scope date like 1/1/1800, and then programmatically change the dates if the values have not been changed. Which I could do by capturing the min & max values, but the user still sees the 1/1/1800 in the parameter prompt. The values are only corrected on the report, so users find this confusing.

So basically is there away to adjust the displayed parameter values that the user sees in parameter prompts?

Thanks in advance for any advice.

Richard
 
I don't believe there is currently a way to do this.

-LB
 
I think LB's comment applies to this too, but I just want to confirm.

If I simplified the effort to just applying the current date as the default. Currently in Crystal XI, there is no way to set a date parameter default to the current date and then have the current date displayed in parameter prompt.

Thanks for the help.

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top