Link to home
Start Free TrialLog in
Avatar of nolasaintsgal
nolasaintsgal

asked on

If multivalue parameter is left blank then display "All" else display the values

I have a multivalue parameter that asks for initials.  They do not select from a list so they can leave it blank or add as many initials as they like.  When they enter initials, this works fine:  Join(Parameters!Initials.Value, ", ").  It display the initials in the report header with a comma separator.

If they don't enter any initials I want the expression in the report header to display "ALL."  This doesn't print anything:
=IIF(Parameters!Initials.Value is Nothing, "ALL", Join(Parameters!Initials.Value, ", "))
I've also tried:
IIF(Parameters!Initials.Value="", "ALL", Join(Parameters!Initials.Value, ", "))
IIF(IsNothing(Parameters!Initials.Value), "ALL", Join(Parameters!Initials.Value, ", "))

How do I need to write this?
ASKER CERTIFIED SOLUTION
Avatar of Nico Bontenbal
Nico Bontenbal
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial