The information in this article applies to:
SYMPTOMSIf a Visual FoxPro date field contains a value 12/30/1899, then it will display as 12:00:00AM, a blank date, in Microsoft Access. CAUSEThe FoxPro ODBC driver returns 0 for an empty date instead of NULL. In Microsoft Access and any other VBA/DAO product, dates and times are stored as the number of days since 12/30/1899, which is day 0, and time values are stored as fractions of a day. The default formatting for date/time data is:
As you can see, the 0.0 case is a special case of "time only".
STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
Notice that in the data sheet view the date displays as 12:00:00 AM, which is a blank date. Additional query words:
Keywords : kbinterop FxinteropOdbc |
Last Reviewed: June 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |