Does anyone know how to create the export specification [fixed width] for a text file? I would like to insert spaces between certain fields. In addition, I do not want quotation marks around the text fields. Any help would be greatly appreciated.
Click on the table or query you want to export and choose File/Export. In the dialog box that follows you will need to select the file type as text files. The export wizard will come up and you will want to go to advanced. In the advanced dialog box you can select fixed width and choose the exact start and end points for each field. Another thing I like to do is base the output on a query and format the fields the way I want them, such as:
Another way to do this is to create a report with the correct formatting, then use the DoCmd.OutPutTo method to create a text file. This is handy if you want to do this routinely (although you could also just output the query, as suggested by jebry).
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.