To import Medium Dates in a delimited text file into a new table, follow
these steps:
- On the File menu, point to Get External Data, and then click Import.
- In the Import dialog box, click Text Files in the Files of type box.
- Find the text file that you want to import, select it, and then click Import to start the Import Text Wizard.
- On the first screen of the wizard, click Delimited, and then click Next.
- On the What delimiter separates your fields? screen, select a Delimiter and Text Qualifier depending on the format of the text file that you are importing. If the first line in the text file contains field names, check the First Row Contains Field Names check box. Click Next.
- On the Where would you like to store your data? screen, click In a New Table, and then click Next.
- On the You can specify information about each of the fields you are importing screen, click the column heading of the column that contains the dates to select that column. In the Data Type list, select Text. Click Next.
- On the Microsoft Access recommends that you define a primary key screen, click the appropriate option: Let Access add Primary Key, Choose my own Primary Key, or No Primary Key." Click Finish. The wizard creates your table with a text field containing the dates in Medium Date format.
- Open the new table in Design view and change the following properties of the Medium Date field:
Data Type: Date/Time
Format: Medium Date
When you save the table and close it, the text values are converted to dates.
You can use the preceding steps to import a delimited text file and append
it to an existing table. In step 6, click the option
In an Existing Table instead of
In a New Table, and make sure the existing table's date field is a Text data type. After you import the data, change the field's data type to Date/Time and set its
Format property to
Medium Date.