Import Text File - Multiple Format Date Fields

G

Guest

I'm importing a text file with data fields of two different date field format
types. One is YYYYMM the other is YYYYMMDD. How do I tell the import spec
to accept these date field formats as date variable types?
 
D

Douglas J. Steele

YYYYMM isn't a date, so you cannot store it in a Date/Time field.

You could import your dates into a text field, add a proper date field to
the table, then write an update query to populate the date field based on
what's in the text field. For the yyyymm dates, you'll need to pick a
default day to use.
 

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