Crystal Reports XI (BOXI)
Sql Server 2000
Hi,
I have a report that needs to use multiple pick parameters and I cannot get it to work correctly. It is not seeing all of the selection criteria, it "falls through" after the first selection (History)- see below - and ignores all of the other picks that are entered in the selection boxes.
The only way that I can get the syntax to check correctly is to use "or" but I am not sure that the logic is right.
What I need is for the first statement({prob_ctg.sym} like "*hdr*") to make an initial record selection and then
return the records based on the additional parameters.
The customer wants to select a value from all of the choices, so each parameter will have a selection criteria filled in.
I know that sometimes the order of the statements makes a difference in how Crystal parses through it, but I have tried many different ways and still cannot get good results.
This is what my record selection statement looks like:
{prob_ctg.sym} like "*hdr*" and
if {?Select One}= "History" then {@Range Month}=false
or
if {?Select One}= "Last Full Month" then ({@Range Month}=true and {@Last Full Month}=true)
or
if {?Select One}= "Last Full Week" then ({@Range Week}=true and {@Last Full Week}=true)
or
(if {?Priority} = "All" then True else {@Priority} = {?Priority})
or
(if {?Status} = 2 then True else {call_req.active_flag} = {?Status})
or
(if {?Assignee} = " " then True else {ctct_1.c_last_name} like ""+{?Assignee}+"*")
I hope this is not too confusing..
I appreciate any help on this,
Thanks in advance,
Rory
Sql Server 2000
Hi,
I have a report that needs to use multiple pick parameters and I cannot get it to work correctly. It is not seeing all of the selection criteria, it "falls through" after the first selection (History)- see below - and ignores all of the other picks that are entered in the selection boxes.
The only way that I can get the syntax to check correctly is to use "or" but I am not sure that the logic is right.
What I need is for the first statement({prob_ctg.sym} like "*hdr*") to make an initial record selection and then
return the records based on the additional parameters.
The customer wants to select a value from all of the choices, so each parameter will have a selection criteria filled in.
I know that sometimes the order of the statements makes a difference in how Crystal parses through it, but I have tried many different ways and still cannot get good results.
This is what my record selection statement looks like:
{prob_ctg.sym} like "*hdr*" and
if {?Select One}= "History" then {@Range Month}=false
or
if {?Select One}= "Last Full Month" then ({@Range Month}=true and {@Last Full Month}=true)
or
if {?Select One}= "Last Full Week" then ({@Range Week}=true and {@Last Full Week}=true)
or
(if {?Priority} = "All" then True else {@Priority} = {?Priority})
or
(if {?Status} = 2 then True else {call_req.active_flag} = {?Status})
or
(if {?Assignee} = " " then True else {ctct_1.c_last_name} like ""+{?Assignee}+"*")
I hope this is not too confusing..
I appreciate any help on this,
Thanks in advance,
Rory