pastasalad
Programmer
I have a Crystal 8 report, based on a SQL Query on a DB2 UDB database, which includes 4 parameters:
- Parameter1
- Parameter2
- Start Date
- End Date
All of the parameters are optional, thus I have used:
({table}.{field} = '{?Parameter1}') OR ('{?Parameter1}' = '')
to disregard any parameter fields that the user has left blank.
This works OK for Parameter1 and Parameter2 (both string fields), but it fails when I use it with the two dates.
How do I write the equivalent of ('{?Parameter1}' = '') for a date field? I don't want to put the date selection in the report definition because the database is very large and I need everything server-side.
Thanks for any suggestions.
- Parameter1
- Parameter2
- Start Date
- End Date
All of the parameters are optional, thus I have used:
({table}.{field} = '{?Parameter1}') OR ('{?Parameter1}' = '')
to disregard any parameter fields that the user has left blank.
This works OK for Parameter1 and Parameter2 (both string fields), but it fails when I use it with the two dates.
How do I write the equivalent of ('{?Parameter1}' = '') for a date field? I don't want to put the date selection in the report definition because the database is very large and I need everything server-side.
Thanks for any suggestions.