It will not work, unless you define the scope/dataset, which IIf
does not support.
You can solve this by:
- creating a
Code
That will update your external textbox (Right click on the report > Report properties > Code tab
) - Using your expression inside your table.
These are the only solutions I can think of.
UPDATE I just thought of a solution that my be of help.
=IIf(
Sum(
IIf(Fields!Type.Value=2, 1, 0),
"YourDataSet"
) = 0,
"Not Found",
"found " & Fields!Type.Value
)
Not sure this applies to your scope, but it's another solution.