How to I say Is Not Null in VBA

2019-02-21 09:39发布

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

2条回答
该账号已被封号
2楼-- · 2019-02-21 10:04

Use Not IsNull(Fields!W_O_Count.Value)

查看更多
手持菜刀,她持情操
3楼-- · 2019-02-21 10:14

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)
查看更多
登录 后发表回答