My report is based on an SQL command that sets variables based on a CASE statement based on a parameter select. It then uses the variables to populate part of the where clause to select records. Example:
Set @var =
CASE
WHEN {?param} = 1
THEN '[^SUB]%'
Select…..
From…
Where tbl.field LIKE @var
This returns results in SQL just fine, but will return no results in Crystal. Any tips on how I might get this to work?
Set @var =
CASE
WHEN {?param} = 1
THEN '[^SUB]%'
Select…..
From…
Where tbl.field LIKE @var
This returns results in SQL just fine, but will return no results in Crystal. Any tips on how I might get this to work?