Importing a Text File

M

mcp6453

Newbie question. I have a an ASCII file (.txt) that contains names,
addresses, and phone numbers in the following format:

Name
Address
City
State
Zip
Phone

Name
Address
City
State
Zip
Phone

Note that there is a hard return at the end of each line, and there are
two hard returns between groups. When I use Get External Data to import
the info into Access 2000, I cannot figure out how to tell Access that
the delimiter is a hard return. How do I do so, or better yet, how to I
import this data into a new Access database?
 
M

Michael J. Strickland

You probably should re-format the data (e.g. in Word) first.

1. Open the file in MS Word.
2. Replace (Ctl-H) each double paragraph mark (^p^p) with some character
not used in the file (e.g. "|").
3. Then replace each paragraph mark (^p) with a Tab (^t). This will be your
field delimiter.
4. Go back and Replace each "|" with a paragraph mark (^p). This will be
your record delimiter.
5. Save the file and Import to Access using the wizard.
 
M

mcp6453

Michael said:
You probably should re-format the data (e.g. in Word) first.

1. Open the file in MS Word.
2. Replace (Ctl-H) each double paragraph mark (^p^p) with some character
not used in the file (e.g. "|").
3. Then replace each paragraph mark (^p) with a Tab (^t). This will be your
field delimiter.
4. Go back and Replace each "|" with a paragraph mark (^p). This will be
your record delimiter.
5. Save the file and Import to Access using the wizard.


tHANKS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top