The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills.
CAUSEThe LIKE function is used to compare two strings. It does not inspect the string for any type of date information. RESOLUTIONUse the comparison operators <, >, <=, =>, <> or the BETWEEN clause when searching for dates. For example, when looking for dates in the month of May 97, use the following syntax: Orders.OrderDate >= #5/1/1997# AND Orders.OrderDate <= #5/31/1997# MORE INFORMATIONSteps to Reproduce Behavior
SELECT Orders.CustomerID, Count(*) AS NumberOfOrders SELECT Orders.CustomerID, Count(*) AS NumberOfOrders SELECT Orders.CustomerID, Count(*) AS NumberOfOrders REFERENCESFor more information about using criteria to find certain records, click Microsoft Access Help on the
Help menu, type "criteria to retrieve records" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned. Additional query words: prb
Keywords : kbdta |
Last Reviewed: February 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |