Here is a short description of my task: I am converting data into a format for other companies and many times I'm required to give them a flat file in fixed width format with numbers right justified.
Example:
25 After-> 000025
I convert the number by setting the data type to number and the format to 000000.
When I run the Export and choose file type: Text File> Export ALL>Fixed Width.. my numbers have their zeros stripped away and are now left justified.
FYI: To work around this problem I've been using Excel and setting the field format to 000000 and exporting a text file. It correctly leaves the zero's, but now I have to run the file through a text converter (UltraEdit) and change the file to a fixed width. I would prefer to only use Access to generate the file.
Last note, I found some information about this on Microsoft's support web page but the solution they have is to set an Import/Export Specification script. I've made several attempts to create a Export specification but have failed. I'm still too much a newbie with Access. I would appreciate any tips or information you could lend.
Example:
25 After-> 000025
I convert the number by setting the data type to number and the format to 000000.
When I run the Export and choose file type: Text File> Export ALL>Fixed Width.. my numbers have their zeros stripped away and are now left justified.
FYI: To work around this problem I've been using Excel and setting the field format to 000000 and exporting a text file. It correctly leaves the zero's, but now I have to run the file through a text converter (UltraEdit) and change the file to a fixed width. I would prefer to only use Access to generate the file.
Last note, I found some information about this on Microsoft's support web page but the solution they have is to set an Import/Export Specification script. I've made several attempts to create a Export specification but have failed. I'm still too much a newbie with Access. I would appreciate any tips or information you could lend.