Crystal Report XI
Oracle 9i
I am using a SQL command to create my report. Here is a short/partial example.
I have my parameter in my command ({?Status}). I want to give the user the option to select a status of 1 or 2. 1 and 2 are values in that database column. I want to also allow the user to select both.
What I have tried;
I have a parameter ({?Status}) that has three different values (0,1,2). Then I use a selection formula:
(If {?Status} = 0 Then
({Command.LICENSE_STATUS} = 1 OR {Command.LICENSE_STATUS} = 2))
I know my selection criterion is where I am going wrong. How would I accomplish this or is it possible to have a parameter work this way? I tried my parameter with a value field and without. Not too sure.
Oracle 9i
I am using a SQL command to create my report. Here is a short/partial example.
Code:
SELECT
a.license_id, a.license_no, a.license_status
FROM
license a
WHERE
a.license_status = {?Status}
I have my parameter in my command ({?Status}). I want to give the user the option to select a status of 1 or 2. 1 and 2 are values in that database column. I want to also allow the user to select both.
What I have tried;
I have a parameter ({?Status}) that has three different values (0,1,2). Then I use a selection formula:
(If {?Status} = 0 Then
({Command.LICENSE_STATUS} = 1 OR {Command.LICENSE_STATUS} = 2))
I know my selection criterion is where I am going wrong. How would I accomplish this or is it possible to have a parameter work this way? I tried my parameter with a value field and without. Not too sure.