Discussion Locked

Exporting fixed width to a text file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Alignment issue. Cannot seem to keep right justify num data in a fixed width format after exporting to a text file. To view the Access 2000 table, all looks fine. Text to left the and Num to the right. After the export, alpha fields remain left(goodthing) but any numeric fields shift left(bad thing)
Thanks for any help...

3 replies

by terryt

What you need to do is design a query that includes the fields that you want to export. For each numeric field that need to be right-justified substitute an expression using the Format$ function such as the following example:
Qty: Format$(CStr([Quantity]),"@@@@@@@@")
where Quantity is the numeric field and the number of "@" characters is the width of the right-justified column.

This discussion is closed to new replies.