Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import excel dates into access

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I have an excel worksheet with a column of dates that are entered like 10/10/1999. When I import this data into Access all the dates become calculations, i.e. 10 divided by 10 divided by 1999. Ive tried formatting the excel columns as text and as dates but it seems to lose that when access imports it. I could go cell by cell and put a ' in front of each date and preserve the formatting, but there are too many rows.

How can I import the excel dates as plain text '10/10/1999'

thanks for any suggestions..
 
Hi,

If the dates are really DATES in Excel, they ought to import as dates.

The way to determine this is to format any cell in Excel containing one of these "dates" as GENERAL. The FORMAT should CHANGE to a NUMBER like 34567.

:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
in excel the cells are formatted as dates so they show up properly. I dont understand why access wont format them properly. In fact, normally you can change the format of each column on the fly when importing into access, but when importing the excel worksheets the data type is grayed out in the access import dialog..

i can probably export the excel to text and then import to access, but im hoping there's a trick to avoid that..

thanks for the reply
 
access defaults to text, and in the preview pane you can see the excel dates have already been converted to plain numbers i.e. the result of the 10 divided by 10 divided by 1999 etc...
 
Try this:

Open your Excel spreadsheet. Click on Tools > Options.
Select the Transition tab. Under Sheet Options uncheck Transition formula entry. Clcik OK. Save worksheet. Import to Access. Hope this helps.

TropicalFred
 
the transition formula entry is already unchecked. I looked around for any other options that might be related but couldnt find anything else...

it was a good try though...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top