I'm exporting a table to a text file. I'm exporting it with fixed widths. Some of the fields are of type number. I need to add leading zeroes to these fields. Does anyone know how to do this?
I used FORMAT([field name)], "00000") and it did work as far as placing the leading zeroes. But when I export it to a text file using a specified field length it removes the zeroes. Any thoughts?
This is not what I found. I chose export, txt, fixed width and found that I was loosing the numbers to the right. However, if I then chose Advanced and increased the size of the field, the numbers exported with the leading zeros. When another field followed the formatted field it was necessary to increase the start position by one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.