38

Hi I have the following expression. I'm trying to say "if the second field Is Not Null". Can you help.

Thanks

=Iif((Fields!approved.Value = "N" & Fields!W_O_Count.Value IsNotNull), "Red", "Transparent")
Gord Thompson
  • 116,920
  • 32
  • 215
  • 418
giles
  • 823
  • 3
  • 12
  • 25

2 Answers2

80

Use Not IsNull(Fields!W_O_Count.Value)

So:

=IIF(Fields!approved.Value = "N" & Not IsNull(Fields!W_O_Count.Value)), "Red", "Transparent")
stuartd
  • 70,509
  • 14
  • 132
  • 163
19

you can do like follows. Remember, IsNull is a function which returns TRUE if the parameter passed to it is null, and false otherwise.

Not IsNull(Fields!W_O_Count.Value)