I’m using:
Crystal Reports XI
SQL Server 2000
I have two parts that I have been testing and I believe it to be working. I am looking for some fresh eyes to see if anyone can see anything I am missing.
I am using a SQL command for my report.
Then my Record Selection Formula looks like this:
I tried to use the idea the Business Objects site had. But theirs was an example for a dynamic prompt. I am not going to be able to use dynamic prompts with this report and was trying to see if I couldn’t make this work with static parameters using the append values option when setting up my LOV.
Have I completely lost it or will this work.
Crystal Reports XI
SQL Server 2000
I have two parts that I have been testing and I believe it to be working. I am looking for some fresh eyes to see if anyone can see anything I am missing.
I am using a SQL command for my report.
Code:
Select a.license_name, b.profession_name From a, b where a.license_id = b.license_id
Union
Select a.license_name, ‘All’ From a, b where a.license_id = b.license_id
Union
Select ‘All’, b.profession_name From a, b where a.license_id = b.license_id
Union
Select ‘All’, ‘All’ From a, b where a.license_id = b.license_id
Then my Record Selection Formula looks like this:
Code:
If {?License_parameter} = ‘All’ AND {?Profession_parameter} <> ‘All’ Then
({Command.license_name} = 'All') and ({Command.profession_name} = {?Profession_parameter})
Else If {?License_parameter} <> ‘All’ AND {?Profession_parameter} = ‘All’ Then
({Command.license_name} = {?License_parameter}) and ({Command.profession_name} = ‘All’)
Else
({Command.license_name} = {?License_parameter}) and
({Command.profession_name} = {?Profession_parameter})
I tried to use the idea the Business Objects site had. But theirs was an example for a dynamic prompt. I am not going to be able to use dynamic prompts with this report and was trying to see if I couldn’t make this work with static parameters using the append values option when setting up my LOV.
Have I completely lost it or will this work.