我正在尝试运行以下代码,但仍在继续
查询表达式中的运行时错误3075语法错误:CCC输入(686200,681400)和[上一个范围]不是空的
代码是
DB.CreateQueryDef queryName, "SELECT * FROM HRCC WHERE CCC In (" & costCentres & ") And [Previous Scope] " & IIf(newStaff, "Is Null", "Not Is Null")
答案 0 :(得分:2)
... [Previous Scope] NOT IS NULL
确实是不正确的语法。
正确的语法是... [Previous Scope] IS NOT NULL
。