I’m trying return different values to a sub reports parameter based on if it visible
The following code works,
=iif ( true, Fields!PatientID.Value,”junk so it sql string will not work” )
Now I try to change it to the following so different values will be return so it sql
=iif ( commentsub!hidden,”junk so it sql string will not work” )
This does not work. Is there a way to do this?
I also tried
=iif ( commentsub!visible,”junk so it sql string will not work” )
And
=iif ( commentsub. visible,”junk so it sql string will not work” )
How can I do this?
An
IIF()statement requires 3 parameters. There are 3 in the first so it works the others only have 2 so will not.Your
IIF()statements should take look similar tohttp://msdn.microsoft.com/en-us/library/ms157328.aspx#DecisionFunctions