Random line breaks in text output

K

KevinLogue

I am running a query in access 2007 and then running a saved export to
pipe-delimitted text file. I am getting what seem to be random line breaks in
the output text file. They are not truncated at any particular column length
and not all are split with line breaks.

Example
line one runs out to 527 chars clean
line two truncates at 256 and continues on next line.

Hidden characters in fields of DB?
Some other issue?
 
K

Ken Snell [MVP]

Soounds like the datea in the field contains carriage return and line feed
characters (so that you see separate lines of text in ACCESS). You'll need
to strip them out in your query:

SELECT Replace(FieldName, Chr(13) & Chr(10), " ") AS NewFieldName,
Field1, Field2, Field3
FROM Yourtablename;
 

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