0

i keep getting the below error when running this SQL code in an access query. Any idea why?

Error: Syntax error (missing operator) in query expression ' Status Date'

Code:

FROM [Owner Training Report]
WHERE ((([Owner Training Report].[Status Date])>DateAdd("m",12,Date())) AND (([Owner Training Report].[Reporting Basic Status])="Completed"));
1
  • 1
    Please show full SQL as error can be due to another part of query. Commented Nov 1, 2017 at 19:18

2 Answers 2

1

You may have Null values, so try:

WHERE (Nz([Status Date],Date()) > DateAdd("m",12,Date())) AND ([Reporting Basic Status] = "Completed");
Sign up to request clarification or add additional context in comments.

Comments

0

Try this (I cannot be 100% sure as I don't know what is your full query):

FROM [Owner Training Report]
WHERE ((([Owner Training Report].[Status Date])>DateAdd('m',12,Date())) AND (([Owner Training Report].[Reporting Basic Status])='Completed'));

I basically changed " to '

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.