A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

syntax error



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2008, 05:55 PM posted to microsoft.public.access
jpark3205
external usenet poster
 
Posts: 11
Default syntax error

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?

  #2  
Old October 29th, 2008, 06:34 PM posted to microsoft.public.access
BruceM[_2_]
external usenet poster
 
Posts: 1,763
Default syntax error

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.

"jpark3205" wrote in message
...
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?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.