Excel DAM: Using Dates in Criteria for SQL QueryLast reviewed: November 2, 1994Article ID: Q62044 |
SUMMARYTo use a date in the criteria range for a DAL (CL/1) query (using the Data Access Macro [DAM]), the date must be enclosed in quotation marks. For example, if you want to find all records in the table "Customer" where the field "cont_date" is greater than 4/13/84, enter the following in the proper cell in the criteria range:
Customer:cont_date >"4/13/84"If quotation marks are not used, the error message "CL1 Error: Operand type clash: integer is incompatible with datetime" will be displayed.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |