The information in this article applies to:
SYMPTOMSIn Microsoft Query, when you use a date in a criteria expression, the date may not be correctly interpreted and you may receive the following error message where <criteria field> is an expression containing a date field, <criteria operator> is the condition that must be true for the expression, and <criteria value> is the comparison value for the expression. WORKAROUNDTo avoid this error, use number signs (#) around dates in the criteria value field when you use them as the comparison value for a criteria expression. Microsoft Query does not interpret the date value correctly when the criteria field contains a date field in an expression. MORE INFORMATION
A criteria value such as "1993-10-31" could be interpreted as either
a date or an arithmetic expression. Microsoft Query only interprets
an ambiguous expression to be a date when the criteria field type is
a date. However, when the criteria field itself is an expression,
"Date+3" for example, the date value is not correctly interpreted,
and an error is generated.
Steps to Reproduce Behavior
where <criteria value> is the value selected from the Values list in step 7. REFERENCES
"Microsoft Query User's Guide," version 5.0, pages 69-70
dates Additional query words: 5.00
Keywords : xlquery |
Last Reviewed: April 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |