ACC2: Importing a Text File with Dates in DDMMMYY FormatID: Q131933
|
Novice: Requires knowledge of the user interface on single-user computers.
When you import a delimited text file containing a field with values in
a Medium Date format (DDMMMYY) with the Create New Table option, the
imported date field has a Text data type rather than a Date/Time data
type. When you import a delimited text file containing a field with
values in a Medium Date format (DDMMMYY) with the Append to Existing
Table option, you receive a "type conversion" error.
Microsoft Access does not recognize the Medium Date format when importing dates in a delimited text file.
When you import a delimited text file with the Create New Table option,
change the field's data type to Date/Time and set the field's Format
property to Medium Date.
When you import a delimited text file with the Append to Existing Table
option, make sure the table's date field has a Text data type. Once you
import the data, change the field's data type to Date/Time and set its
Format property to Medium Date.
DDMMMYY,MMDDYY
01-Dec-95,12/1/95
31-Jan-96,1/31/96
15-Mar-94,3/15/94
For more information about this issue in Microsoft Access 7.0 or above,
please see the following article in the Microsoft Knowledge Base:
Q159323 ACC: Importing Text File with Dates in DDMMMYY Format
(95/97)
For more information about changing a field's data type, search for
"data type conversion," and then "Changing a Field Data Type" using the
Microsoft Access Help menu.
For more information about formatting dates, search for "date formats,"
and then "Format Property - Date/Time Data Types" using the Microsoft
Access Help menu.
Keywords : kb3rdparty IsmTxtd
Version : 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 26, 1999