CR 8.5, SQL Server 2000
I'm trying to get the record selection formula to be passed to the WHERE clause of the SQL. I'm only seeing the first 2 lines been passed. The remaining part, with the nested IF then else Block, is not been passed. (It gets processed on the client which slows the query down)
I've had a look around Tek-tips but still cannot get the rec selection to work efficiently.
Can anyone help?
//rec Selection
{MPDECH.EHECON} Like {?ECO Prompt} and
{MPDECH.EHECON} >= "0" and
(
if {?paramECO Status} = '1'then {MPDECH.EHECHS} < '80'
else if {?paramECO Status} = '2' then {MPDECH.EHECHS} = '80'
else if {?paramECO Status} = '3' then {MPDECH.EHECHS} = '85'
else if {?paramECO Status} = '4' then true
)
Thanks
Fred
I'm trying to get the record selection formula to be passed to the WHERE clause of the SQL. I'm only seeing the first 2 lines been passed. The remaining part, with the nested IF then else Block, is not been passed. (It gets processed on the client which slows the query down)
I've had a look around Tek-tips but still cannot get the rec selection to work efficiently.
Can anyone help?
//rec Selection
{MPDECH.EHECON} Like {?ECO Prompt} and
{MPDECH.EHECON} >= "0" and
(
if {?paramECO Status} = '1'then {MPDECH.EHECHS} < '80'
else if {?paramECO Status} = '2' then {MPDECH.EHECHS} = '80'
else if {?paramECO Status} = '3' then {MPDECH.EHECHS} = '85'
else if {?paramECO Status} = '4' then true
)
Thanks
Fred