I am convinced I am barking up the wrong tree.....
My CR9 report uses several parameters to select data, one of which allows multiple values.
I want to put a note in the header of the report to let the user know which parameters he or she has selected. Basically something that looks like:
"Report lists {?Live Study Bills Only} {?Study Type} bills" where {?Live Study Bills Only} is a simple Y or N and {?Study Type} can be a single value like Legislative or multiple like Legislative and Departmental.
If each parameter can only accept one value, this is a no brainer. But once you introduce an array that may or may not have more than one value (it MUST have at least one), it doesnt work. I have tried several different functions (for loops, while do, etc..) with no luck. I envision something like:
IF ({?Live Study Bills Only?} = "Y" and ({?Study Type} = "All Studies" <--- The default value
Then "Listing of all live study bills"
Else
IF ({?Live Study Bills Only?} = "Y" and ({?Study Type} <> "All Studies"
Then "Listing of live " & {?Study Type} & " study bills"
Else
If ({?Live Study Bills Only?} = "N" and ({?Study Type} = "All Studies"
Then "Listing of all study bills"
Else
"Listing of all " & {?Study Type} & " study bills"
The problem comes when I actually try to output the value of ?Study Type when it can have multiple values.
My CR9 report uses several parameters to select data, one of which allows multiple values.
I want to put a note in the header of the report to let the user know which parameters he or she has selected. Basically something that looks like:
"Report lists {?Live Study Bills Only} {?Study Type} bills" where {?Live Study Bills Only} is a simple Y or N and {?Study Type} can be a single value like Legislative or multiple like Legislative and Departmental.
If each parameter can only accept one value, this is a no brainer. But once you introduce an array that may or may not have more than one value (it MUST have at least one), it doesnt work. I have tried several different functions (for loops, while do, etc..) with no luck. I envision something like:
IF ({?Live Study Bills Only?} = "Y" and ({?Study Type} = "All Studies" <--- The default value
Then "Listing of all live study bills"
Else
IF ({?Live Study Bills Only?} = "Y" and ({?Study Type} <> "All Studies"
Then "Listing of live " & {?Study Type} & " study bills"
Else
If ({?Live Study Bills Only?} = "N" and ({?Study Type} = "All Studies"
Then "Listing of all study bills"
Else
"Listing of all " & {?Study Type} & " study bills"
The problem comes when I actually try to output the value of ?Study Type when it can have multiple values.