Problem Exporting 19th Century Dates To Excel

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
I need to export a large Access table to Excel. Some of the fields in the Access table are date fields, and some of the dates are 19th Century dates (example - 12/15/1899). The problem is - these exported dates appear in Excel as ##########. How do I export 19th centruy dates into Excel? This problem occcurs when I try to export a query of the Access table, and when I use VBA to export the Access table data.

Thanks.
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,061
Office Version
  1. 365
Platform
  1. Windows
Why do you need to export to Excel?

Can you not do whatever you want in Access?
 

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
I need to export the data into Excel as part of a larger project to migrate/convert part of the Access application to Excel. The reason for the migration/conversion is a little complicated.
 

pritcham

Board Regular
Joined
Oct 26, 2005
Messages
128
Hi

Can you not convert the values to text while you transfer to Excel and then deal as you need with at the other end?

Just an idea
Martin
 

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
Thanks for the idea. I had not thought of that. I think I will have to follow your suggestion. I had hoped that there was some easier way around the problem.
 

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Text is the way to go. Excel does not recognise dates prior to 1/1/1900 as dates. They are text anyway (as far as Excel is concerned), and is you try to force them into a date format you will get the problems you mentioned.

Denis
 

Watch MrExcel Video

Forum statistics

Threads
1,118,763
Messages
5,574,095
Members
412,567
Latest member
mm1
Top