ACC2: Date Range Parameter Query Returns No RecordsID: Q131240
|
Novice: Requires knowledge of the user interface on single-user computers.
When you run a parameter query to find the records in a date range, the
resulting recordset is empty.
The recordsset is empty because one of the following conditions is true
for the parameter query:
To work around this problem, use one of the following methods:
>=[start date] and <=[end date]
This problem no longer occurs with the Microsoft Jet database engine
version 2.5, which is available with the Microsoft Access version 2.0
Service Pack. For information about how to obtain the Service Pack,
please see the following article in the Microsoft Knowledge Base:
Q122927 WX1124: Microsoft Access Version 2.0 Service Pack
Table: TestDates
-------------------------------
Field Name: ID
Data Type : Counter
Indexed: No
Field Name: Date
Data Type : Date/Time
Indexed: Yes (Duplicates OK)
12/23/94
12/25/94
12/30/94
1/1/95
1/1/92
12/31/93
Query: Test1
-----------------------------------------------------------------
Field: ID
Show: Yes
Field: Date
Show: Yes
Criteria: Between [Enter a start date] And [Enter an end date]
[Enter a start date]: 12/23/94
[Enter an end date]: 1/1/95
For more information on parameter queries, search for "parameter query," and then "Creating a Parameter Query" using the Microsoft Access Help menu.
Additional query words: jet25
Keywords : kbusage QryParm
Version : 2.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 23, 1999