Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting a table to Fixed Width Text File 1

Status
Not open for further replies.

jondel81

Technical User
Jul 27, 2003
71
US
I have a table full of customer information I need to be in a fixed width text file. I can export it just fine. When looking at the file, there seems to be extra line feeds in some of the records. The data output looks something liket his
Not sure whats going on in the data. Is there a way I can see if the line feed is in the data it self. Perhaps filter the line feed?

------
 
I would have to say that there are a LOT of blank spaces at the end of the address information or the beginning of the city information of this record:

66445 Anderson David 23 Lazy Summer Way
Keasbey NJ 08832

The rest of the records look like they are exporting fine. Have you tried a TRIM function to remove the extra spaces?

Leslie
 
Try something like this:
newValue = Replace(Replace(oldValue, vbCr, " "), vbLf, " ")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Use Chr(13) and Chr(10) instead.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top