【发布时间】:2018-10-29 16:06:48
【问题描述】:
If IsNull(delivery) = True Then
此代码针对一个变量运行,即交付。
我检查了isNull 的三个变量,我想要代码。
此代码用于访问宏。
【问题讨论】:
-
我必须检查它的三个变量
If IsNull(delivery) = True Then
此代码针对一个变量运行,即交付。
我检查了isNull 的三个变量,我想要代码。
此代码用于访问宏。
【问题讨论】:
根据您需要的逻辑使用And 或Or 运算符,例如使用And 逻辑:
If IsNull(delivery) And IsNull(variable2) And IsNull(variable3) Then
' Do something if all three variables are null
End If
或者,使用Or 逻辑:
If IsNull(delivery) Or IsNull(variable2) Or IsNull(variable3) Then
' Do something if any of the three variables are null
End If
【讨论】: