Data Import & Export

Fix Microsoft Access Text Export Formatting for a Pass-Through Query

Huda QurayshiHuda Qurayshi Nov 27, 2026 869 views

Question details

Export the results of an Access pass-through query to a text file without forcing formatting and layout.

Fix Text Export Formatting for an Access Pass-Through Query
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.
Before you start

Confirm the name of the pass-through query in the Access Navigation Pane and make sure it returns the records you want to export.

Solution 1Recommended

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.

1
Create a query

In Access, select Create > Query Design. Close the Show Table or Add Tables pane if it opens, then switch to SQL View.

2
Reference the pass-through query

Enter SELECT * FROM [PassThroughQuery];, replacing PassThroughQuery with the exact name of your pass-through query. Run the query to check its results.

3
Save the SELECT query

Select Save and give the new query a distinct name so you can find it in the Navigation Pane.

4
Export the new query

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.

5
Complete the export

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.

Export a SELECT Query Based on the Pass-Through Query
Why this helps: The SELECT query reads the pass-through query's results but is exported as a standard Access query. The formatting option may be unavailable rather than editable; verify that it is not selected before continuing.
Free Microsoft Office alternative

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.

Review exported text data in a spreadsheetCompatible with Microsoft Excel XLS and XLSX filesFamiliar spreadsheet interface for an easier transitionFree and lightweight office software
microsoft office alternative - wps office

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.