Microsoft KB Archive/249168

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


Query97: "Syntax Error (Missing Operator)..." Error Performing Query with a Date

Article ID: 249168

Article Last Modified on 8/30/2002



APPLIES TO

  • Microsoft Query 2000



This article was previously published under Q249168


SYMPTOMS

When you enter a date in the Criteria pane of your query, you receive an error message similar to the following

Syntax error (missing operator) in query expression '(Table Name.Fieldname=d '100-07-04'})'.

where Table Name is the name of the table and Fieldname is the name of the field that you are querying.

CAUSE

This issue occurs when the following conditions are true:

  • You enter a date value that does not include the year.


-and-

  • The current date setting on your computer is later than December 31, 1999.


WORKAROUND

To work around the problem, always specify the year portion of the date when your system clock is set to a date later than December 31, 1999.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Microsoft Office 2000 SR-1/SR-1a.

REFERENCES

For additional information about using dates with MSQuery, click the article number below to view the article in the Microsoft Knowledge Base:

187698 Query97: MSQuery Uses 1900 Date When Two Digits Are Used for Year



Additional query words: XL2000 y2k XL97

Keywords: kbprb kbpending KB249168