PC Review


Reply
Thread Tools Rate Thread

Problem with date when importing

 
 
ds
Guest
Posts: n/a
 
      27th Jan 2010
Hello! I am trying to import an excel file to access. I have managed to
import successfully. However, my date column is in the excel spreadsheet
which looks as such eg 4-Feb-09 is changed to 4/2/09 in access after it has
been imported. I have
tried to keep the date's column as text datatype or datetime datatype. But
both does not work. Hope someone could clear my doubt. Thks!! Any help is
appreciated.
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      27th Jan 2010
Do you live somewhere that uses DD/MM/YYYY date format or the MM/DD/YYYY
format used mostly in the USA? The Window's Regional Settings on your PC can
make a difference.

Usually keeping the field as Text in a temporary is one way to get in the
data correctly. Then you can use things like IsDate, CDate, DatePart, etc. to
get the from the temp table to the final table.

What happens when you link to the Excel spreadsheet instead of importing it?
You might have better luck with the date format that way.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"ds" wrote:

> Hello! I am trying to import an excel file to access. I have managed to
> import successfully. However, my date column is in the excel spreadsheet
> which looks as such eg 4-Feb-09 is changed to 4/2/09 in access after it has
> been imported. I have
> tried to keep the date's column as text datatype or datetime datatype. But
> both does not work. Hope someone could clear my doubt. Thks!! Any help is
> appreciated.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Problem when importing a table John_ Microsoft Access External Data 0 11th Sep 2008 09:58 PM
Link date to a table with Date Range (Eff Date and term date) =?Utf-8?B?S2V2aW4gUmVlZA==?= Microsoft Access 1 31st Aug 2006 04:23 PM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 02:08 AM
Run Query from date to date, Print the from date to date in the header of the report? Dustin Swartz Microsoft Access Queries 1 25th Jan 2005 08:06 PM
Date Range: Between [Start Date] and [End Date] problem KL Microsoft Access Queries 4 16th Dec 2003 03:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:13 AM.