To Documents
Importing a Textfile into Access
- Here are the steps for importing a textfile into a
2002-2003 Access file.
- Create a comma delimited file where the first line contains
the column names, for example, persons.txt.
- Open Access. In the classroom lab: Start >> Microsoft Access >>
Microsoft Access 2007.
- Select New Blank Database. Enter persons.mdb in the Name: textbox.
Click Create.
- Close the table Table1.
- Select the External Data Tab in the Main mMenu >> Text File.
- Verify that the radio button Import the source data into a new
table in the current database is selected, browse to find the
persons.txt file. Click OK.
- Verify that the Delimited radio button is selected. Click Next.
- Check the check box First Row Contains Field Names. Click Next.
- Click Next.
- Check the radio button No primary key or Choose my own primary key
- Verify that Persons is entered in the Import to Table textbox.
Click Finish.
- Click Close. The Persons table is created.
- Open the Persons table or close Access.