Then you can set the Format property of the field (design view of the table)
to show the data the way you want.
Or, is the problem that ACCESS is not recognizing your "date/time" value
from the text file as a valid date/time value? I would expect that ACCESS
would correctly read the value as a valid date/time, and no input mask
should be needed for the import process.
--
Ken Snell
<MS ACCESS MVP>
"CW" <C...@discussions.microsoft.com> wrote in message
news:841C3A11-FCFE-4216...@microsoft.com...
--
Ken Snell
<MS ACCESS MVP>
"CW" <C...@discussions.microsoft.com> wrote in message
news:3C471E5E-6A05-4D62...@microsoft.com...
2006-05-31 00:00
2007-01-31 01:00
2006-10-31 01:00
2007-06-30 00:00
2007-06-30 00:00
2006-06-30 00:00
2006-12-31 01:00
2007-03-31 00:00
2007-04-30 00:00
2007-01-31 01:00
2006-11-30 01:00
2007-02-28 01:00
2006-05-31 00:00
2006-08-31 00:00
By the way I have absolutely no interest in the time, only the date. So if
there is some way of accepting this data that happens to involve losing the
time element, no problem!
Thanks so much for your help
This is how I did it:
1) Use File | Get External Data ... | Import menu to start the import
process.
2) Select ".txt;.csv" file type.
3) Select the .csv file that contains the data, and click Import button in
navigation window.
4) Select Advanced... button (bottom left) of import wizard window.
5) Change Date Order setting from "MDY" to "YMD", and leave all other
settings alone. Click OK button. (Note: you can save these settings as an
Import Specification at this point, prior to clicking OK button, if you
wanted to use these settings when doing the import via TransferText [macro
or VBA]. Click the Save As... button to do this.)
6) Continue through the rest of the import process, selecting "import into
new table" option.
7) At final screen of import wizard, click Import.
Access defaults to "MDY" date/time order setting for the import of a text
file. This setting will cause an error when importing your data because your
date/time format is not in month - day - year order.
--
Ken Snell
<MS ACCESS MVP>
"CW" <C...@discussions.microsoft.com> wrote in message
news:E6DB53B4-EA6E-4420...@microsoft.com...