Hi. Using Crystal Reports 10. ODBC connection to database.
My existing report has a Record Selector - {Quote Arrival Date} in (?StartDate) to (?EndDate).
This provides the user a start date & end date selector to create report. This report will include all Quotes within their selected period.
I need to change the report so the user can either select a single Quote (format is number) or use the report in its existing date range selector format.
I tried to create another parameter in which the user chose "Single Quote" or "Date Range" but I'm having issues that the Single Quote is a number format and the Date Range selector is a Date.
e.g
If {?Selector} = "Single Quote" then {Quote#}
else {Quote Arrival Date} in (?StartDate) to (?EndDate)
Errors - the else statement isn't in number format
Perhaps my logic of the selector isn't best practise or there is a simple fix to this report error. It seems ridiculous to create a copy of this report with a different record selection.
Appreciate your assistance
My existing report has a Record Selector - {Quote Arrival Date} in (?StartDate) to (?EndDate).
This provides the user a start date & end date selector to create report. This report will include all Quotes within their selected period.
I need to change the report so the user can either select a single Quote (format is number) or use the report in its existing date range selector format.
I tried to create another parameter in which the user chose "Single Quote" or "Date Range" but I'm having issues that the Single Quote is a number format and the Date Range selector is a Date.
e.g
If {?Selector} = "Single Quote" then {Quote#}
else {Quote Arrival Date} in (?StartDate) to (?EndDate)
Errors - the else statement isn't in number format
Perhaps my logic of the selector isn't best practise or there is a simple fix to this report error. It seems ridiculous to create a copy of this report with a different record selection.
Appreciate your assistance