Importing Date Field into Access

Amileaux

Board Regular
Joined
Nov 3, 2002
Messages
110
We download a text file from a web site. It contains a date field with a #YYYY-MM-DD# format. Excel converts this appropriately. However, I would like to import this directly into access without stopping at Excel. This date field refuses to come across (my import specification makes it a date field). Upon researching this a little, it appears that Access only likes date in the #mm/dd/yyyy# format.

My proposed work around is to import this field as a text field, then write a query to convert it (using datepart I think) to a date and then load it to the final table.

Any thoughts on an easier more direct solution? Marie
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,221,543
Messages
6,160,422
Members
451,644
Latest member
hglymph

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top