drtopserv
asked on
Importing an excel file with a problematic date column
Hi,
I have an excel file (attached ) with one column.
the problem is that this column have defferent formatting for a date.
this what i`m getting from external apps as export.
now i`d like to import this file into access.
but when i do that. it doesn`t recognize the column as a date , but as i text.which i don`t want to.
that`s because of the problem with the format.
how can i import the column as a date (fixing the problem through the importing process in access) , if one may help out , maybe using a vba code . or somethen:}
thnx in regard :}
DateProblem.xlsx
I have an excel file (attached ) with one column.
the problem is that this column have defferent formatting for a date.
this what i`m getting from external apps as export.
now i`d like to import this file into access.
but when i do that. it doesn`t recognize the column as a date , but as i text.which i don`t want to.
that`s because of the problem with the format.
how can i import the column as a date (fixing the problem through the importing process in access) , if one may help out , maybe using a vba code . or somethen:}
thnx in regard :}
DateProblem.xlsx
ASKER
dd/mm/yyyy
but how can i use a query to format it?
may a sample?
but how can i use a query to format it?
may a sample?
select cdate(format([datefield]," dd/mm/yyyy "))
from temptable
from temptable
ASKER
but did you see the column in the excel file, it has 2 formats togother in same column
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I LOVE YOU man!! heheh
it works!!! thnx alot..
plz may u have alook at my open Q:ID: 28158731
it works!!! thnx alot..
plz may u have alook at my open Q:ID: 28158731
ASKER
btw, in excel i couldn`t use :CDate or DateValue (didn`t work for me:} )
use a query to format the dates imported to the temp table and append the result to the destination table.
what date format do you have in your destination table?