Access 07 import yyyymmdd

T

tg

I have been trying to import a text file to access 2007 and I keep getting an
error. I looked online and noticed that it is a problem with access not
recognizing the date format yyyymmdd. In order to get around this, I have
had to import to Excel, then import the spreadsheet to access. I was hoping
someone might know a fix, or if Microsoft plans to patch this little problem.
Thanks.
 
D

Douglas J. Steele

One approach is to import the date field as Text, and then run an Update
query to convert the Text date to a real date and update a Date date field.

UPDATE MyTable
SET MyDateField = CDate(Format([MyTextDateField], "####\-##\-##"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top