4

Is it possible to have an image available if a certain field is selected, in this case the parameter is @employeename, I only want the image that has been placed on the report to display if a certain value is true.

What is the syntax, field i am concerned with is employeename

enter image description here

Community
  • 1
  • 1
JsonStatham
  • 9,770
  • 27
  • 100
  • 181

1 Answers1

5

The expression would be something like:

=IIf(Fields!employeename.Value = "Something", True, False)

You can have "Something" be a hard-coded value or another parameter. The key thing to remember is you have to access the .Value property.

Yuck
  • 49,664
  • 13
  • 105
  • 135
  • 3
    +1 - and if the condition is on the parameter, then `=IIf(Parameters!employeename.Value == "Something", True, False)` – Lamak Feb 17 '12 at 15:52
  • 2
    Just remember in "Visibility" if your condition returns True, it hides the image and if your condition returns False, it shows your image. (Exactly reverse of what we expect) – Amir978 Mar 25 '15 at 00:24