0

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

1 Answer 1

2

... [Previous Scope] NOT IS NULL is indeed incorrect syntax.

The correct syntax would be ... [Previous Scope] IS NOT NULL.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.