syntax error

  • Thread starter Thread starter jpark3205
  • Start date Start date
J

jpark3205

I am trying to use the filter within the report. However, I am getting this
error message :

Syntax error (missing operator) in query expression '((Query4.LastOfTerm
Date) >0)'

What does this mean, and how do I fix it? That is my main question.

My second question is if I wanted to use the filter to get all term dates
from 2 different columns (for example '((Query4.LastOfTerm Date) >0)' or
'((Query5.LastOfTerm Date) >0)' is there a way to do this?
 
Try enclosing the field name in square brackets:
Query4.[LastOfTerm Date]

Since there is a space in the field name you *must* enclose the field name
in square brackets. Also, since the word Date is a reserved word, Access
may be trying to work with the Date function rather than the field. That
may be why it identifies it as a syntax error. Or maybe it is interpreting
the 0 as a date, but if so it would need to be delimited by # signs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top