Optional Date Parameters
I want to create a report where the users have the option to enter a one to many different parameters; or in other words - we are using the report as a search facility. For example ... I user can enter a state, a business code, a filing date, or an analysts name in order to search for the filings that fit the criteria. I've been able to bypass most parameters by using Trim, Len , and or clauses in the record selection.
For example:
I have a Formula name MissingGAC with the syntax:
if isnull({?GAC}[1]) then
1
else if len(trim({?GAC}[1])) = 0 then
1
else
0
Then in my Record Selection I enter the clause
({@MissingGAC} = 1 OR {REPORT_SUBMISSION.C_GAC} in {?GAC})
//parameter was set so go do what you want to do with the parameter
However I've run into a problem with Date Parameters; I can't leave then at null or use Trim and Len on them
.I'd like to use Date Parms (to verify dates, and use the calendar functions built into crystal, however I don't know how to make an optional date parameter without Strings.
Also, even with Strings as dates - Its tricky to convert strings to dates and include all the logic to verify the date all within crystal.
Can anyone offer me a solution.
Thanks
I want to create a report where the users have the option to enter a one to many different parameters; or in other words - we are using the report as a search facility. For example ... I user can enter a state, a business code, a filing date, or an analysts name in order to search for the filings that fit the criteria. I've been able to bypass most parameters by using Trim, Len , and or clauses in the record selection.
For example:
I have a Formula name MissingGAC with the syntax:
if isnull({?GAC}[1]) then
1
else if len(trim({?GAC}[1])) = 0 then
1
else
0
Then in my Record Selection I enter the clause
({@MissingGAC} = 1 OR {REPORT_SUBMISSION.C_GAC} in {?GAC})
//parameter was set so go do what you want to do with the parameter
However I've run into a problem with Date Parameters; I can't leave then at null or use Trim and Len on them
.I'd like to use Date Parms (to verify dates, and use the calendar functions built into crystal, however I don't know how to make an optional date parameter without Strings.
Also, even with Strings as dates - Its tricky to convert strings to dates and include all the logic to verify the date all within crystal.
Can anyone offer me a solution.
Thanks