Import text file with hard returns

L

Lars Brownies

I'm trying to import a text file of which the values are separated by "|".
It works well but some of the records have a field value that contains a
hard return (shows as a little box in the text). The import action chokes on
those records and enters a new record and the text behind the hard return is
lost.
Is there a way to let Access ignore the returns?
Thanks,
Lars
 
T

Tom Wickerath

Hi Lars,

If this is a one-time need, try importing into Excel first. If that is
successful, then save the .XLS file and use that as the source file for your
import. Excel seems to handle difficult data better than Access, in my
opinion.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 
L

Lars Brownies

Thanks. Got it working.

Tom Wickerath said:
Hi Lars,

If this is a one-time need, try importing into Excel first. If that is
successful, then save the .XLS file and use that as the source file for
your
import. Excel seems to handle difficult data better than Access, in my
opinion.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 

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