开发者

How to check for Is Not Null in VBA?

开发者 https://www.devze.com 2023-04-10 12:46 出处:网络
Hi I have the following expression. I\'m trying to say \"if the second field Is Not 开发者_如何学PythonNull\". Can you help.

Hi I have the following expression. I'm trying to say "if the second field Is Not 开发者_如何学PythonNull". Can you help.

Thanks

=Iif((Fields!approved.Value = "N" & Fields!W_O_Count.Value IsNotNull), "Red", "Transparent")


Use Not IsNull(Fields!W_O_Count.Value)

So:

=IIF(Fields!approved.Value = "N" & Not IsNull(Fields!W_O_Count.Value)), "Red", "Transparent")


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)
0

精彩评论

暂无评论...
验证码 换一张
取 消