ACC: Access Table with Time Field Exports Strangely to Excel

Last reviewed: June 6, 1997
Article ID: Q92823
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, and 2.0
  • Microsoft Excel for Windows, versions 4.x and 5.0

SUMMARY

A Microsoft Access table that has a Time-formatted field displays a strange date format when exported to Microsoft Excel. The Time column on the spreadsheet displays the time as the date 1/0/00. This behavior occurs because of the way Microsoft Excel interprets serial numbers. To display the time correctly, apply a Microsoft Excel time format to the affected information.

MORE INFORMATION

Microsoft Access and Microsoft Excel both use serial numbers to display dates and times. A Microsoft Access table that is exported to Microsoft Excel automatically formats all serial numbers as dates. The spreadsheet column of serial numbers simply needs the format changed to time.

To correctly display a time format in the versions of Microsoft Excel prior to version 5.0, select the column of dates on the spreadsheet. From the Format menu, choose Number, and select one of the time formats (for example, hh:mm:ss AM/PM).

In Microsoft Excel version 5.0, select the column of dates on the spreadsheet. From the Format menu, choose Cells. From the Number tab, select one of the time formats.

REFERENCES

For more information, search for "Serial Numbers" and "Date and Time Numbers" using the Microsoft Excel Help menu.


Additional query words: transferspreadsheet cell
Keywords : IntpOff IsmExl4 IsmExl5 kbinterop
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.