ACC97: Date Criteria in Converted DB Returns Incorrect Results (160503)
The information in this article applies to:
This article was previously published under Q160503 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
You have a Microsoft Access 2.0 or 7.0 database that uses a literal date
between 1900 and 1929 as criteria in a query. After you convert or enable
that database in Microsoft Access 97, the query returns the wrong records
or no records at all.
For information about the same symptoms occurring in Microsoft Access 7.0,
please see the following article in the Microsoft Knowledge Base:
155669 ACC: Years 01-29 Default to Year 2000 When Typed As M/D/YY
CAUSE
You have a newer version of Oleaut32.dll, which may have been installed by
Microsoft Internet Explorer version 3.0 or Microsoft Windows NT version
4.0.
RESOLUTION
You can work around this behavior in the following ways:
- Change the query criteria to specify the century. For example, change
#01/01/00# to #01/01/1900#.
- Use the type conversion function, CDate(), to convert a string to a date
in your criteria. For example, CDate("01/01/1901").
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kbprb kbusage KB160503 |
---|
|