Fix Microsoft Access Text Export Formatting for a Pass-Through Query
Question details
Export the results of an Access pass-through query to a text file without forcing formatting and layout.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A user exports a pass-through query directly to a text file and wants to disable the formatting and layout option.
- Observed behavior
- The Export data with formatting and layout option cannot be cleared for the direct pass-through query export.
Confirm the name of the pass-through query in the Access Navigation Pane and make sure it returns the records you want to export.
Export a SELECT Query Based on the Pass-Through Query
Use a standard SELECT query as an intermediary when Access forces formatting for a direct pass-through query export.
In Access, select Create > Query Design. Close the Show Table or Add Tables pane if it opens, then switch to SQL View.
Enter SELECT * FROM [PassThroughQuery];, replacing PassThroughQuery with the exact name of your pass-through query. Run the query to check its results.
Select Save and give the new query a distinct name so you can find it in the Navigation Pane.
Select the saved SELECT query in the Navigation Pane, then choose External Data > Text File. Choose a destination and check that Export data with formatting and layout is not selected.
Select OK and follow the Export Text Wizard to choose the delimiter or fixed-width settings and finish the export. Open the resulting text file to verify its contents.

Review Exported Text Data in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility. After exporting data from Access, use WPS Spreadsheets to review it and continue working with spreadsheet files. WPS does not fix Access query export settings or run Access pass-through queries.

Frequently Asked Questions
Why can't I clear the formatting option for my pass-through query?
Access can force the formatting and layout option when a pass-through query is exported directly. The reason is not established here; exporting a standard SELECT query that reads the pass-through query is a practical workaround.
What SQL should I use to wrap the pass-through query?
In a new Access query's SQL View, enter SELECT * FROM [PassThroughQuery]; and replace the name in brackets with your saved pass-through query's name.
Where do I export the new query to a text file?
Select the saved SELECT query in the Navigation Pane, then choose External Data > Text File and follow the export prompts.
Can WPS Office change the Access export setting?
No. Change the export approach in Access first. You can then open the exported text data in WPS Spreadsheets for review or further spreadsheet work.




