The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills.
CAUSEWhen you import a text file into a Microsoft Access database, if that file contains a date or a time value, a small, floating point math error occurs. When this error occurs, the number recorded for the date or time value during the import will be slightly different from the number recorded when you manually enter the same date or time value. When you try to filter on the Date/Time field, Microsoft Access will see these differences as not matching, even though the values appear to be identical. RESOLUTIONYou can correct this problem by running an update query against the imported table. This update query will use the Format function to first convert the Date/Time field value to a string, and then use the CVDate function to convert to a date or time data type. If for example, the Date/Time field is named MyDate, the update query would appear as follows:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
04:30:00 REFERENCESFor more information about update queries, click Microsoft Access Help on the
Help menu, type "creat an action query" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned. Additional query words: pra
Keywords : kbdta CnvGnrl |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |