I am trying to run the below code but keep getting
Run Time Error 3075 syntax error in query expression: CCC In (686200, 681400) And [Previous Scope] Not Is Null
The code is
DB.CreateQueryDef queryName, "SELECT * FROM HRCC WHERE CCC In (" & costCentres & ") And [Previous Scope] " & IIf(newStaff, "Is Null", "Not Is Null")