Importing Text

M

martin

I have a field in a text file that has imbedded double-
quotes ("). Access will not import these fields and the
import causes an Unparsable Record error for each record
that has such a field. I have tried several different
separator characters like comma and pipe in the original
text file, but nothing seems to make a difference.

Is there a way around this? Any ideas would be helpful.
Thanks.
 
J

John Nurick

Hi Martin,

This normally works just fine. Here are the contents of a pipe-delimited
text file I've just imported:

Field1|Field2|Field3
1|Text field|Text Field
2|Field with "quote" marks|Text Field
3|"Field within "quote" marks"|Last Field

As you go through the wizard, make sure you select
Delimited file
For delimiter, choose "Other" and type a | in the box
(make quite certain the box is empty first)
First Row contains field name
Text qualifier: none

If this doesn't help, please post back with a sample of your data and
details of theversions of Access and Windows you are using.
 
M

martin

John
I believe I missed the Text Qualifier None setting when I
was doing this

Thanks for the help.
-----Original Message-----
Hi Martin,

This normally works just fine. Here are the contents of a pipe-delimited
text file I've just imported:

Field1|Field2|Field3
1|Text field|Text Field
2|Field with "quote" marks|Text Field
3|"Field within "quote" marks"|Last Field

As you go through the wizard, make sure you select
Delimited file
For delimiter, choose "Other" and type a | in the box
(make quite certain the box is empty first)
First Row contains field name
Text qualifier: none

If this doesn't help, please post back with a sample of your data and
details of theversions of Access and Windows you are using.
I have a field in a text file that has imbedded double-
quotes ("). Access will not import these fields and the
import causes an Unparsable Record error for each record
that has such a field. I have tried several different
separator characters like comma and pipe in the original
text file, but nothing seems to make a difference.

Is there a way around this? Any ideas would be helpful.
Thanks.

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.
 

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