【问题标题】:access macro IsNull multiple variables访问宏 IsNull 多个变量
【发布时间】:2018-10-29 16:06:48
【问题描述】:
If IsNull(delivery) = True Then

此代码针对一个变量运行,即交付。

我检查了isNull 的三个变量,我想要代码。

此代码用于访问宏。

【问题讨论】:

  • 我必须检查它的三个变量

标签: ms-access macros


【解决方案1】:

根据您需要的逻辑使用AndOr 运算符,例如使用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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-02
    • 2018-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多