How to Fix Unable to Export an Access Query to a CSV File
Question details
The user needs to export a Microsoft Access query into an unformatted, comma-delimited CSV or text file to import into another application, but the standard export method either fails or creates an improperly formatted file.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Exporting database query results into a plain CSV format so the data can be imported into third-party software.
- Observed behavior
- Exporting the data as plain text or CSV fails, whereas checking the formatting and layout option works but produces a file type that is incompatible with the target application.
Ensure you have the necessary write permissions to save files in your target destination folder, and verify that your Access query runs successfully without any missing parameter prompts.
Use the Unformatted Text Export Wizard from Design View
Bypass formatting constraints by ensuring the layout export option is disabled, which triggers the proper wizard for comma-delimited files.
When exporting query data from Access, choosing to keep formatting and layout overrides the standard text export wizard, preventing you from specifying custom delimiters like commas. To generate a true CSV file, you must export the data unformatted.
Launch your Access database, locate the target query in the navigation pane, right-click it, and select 'Design View'.
Navigate to the 'External Data' tab on the top ribbon and click on 'Text File' located within the Export group.
Click 'Browse' to choose a location (such as your Documents or Downloads folder, avoiding the root C: drive) and ensure the file name ends with the .csv extension.
Ensure the checkbox for 'Export data with formatting and layout' is left completely unchecked, then click 'OK'.
In the wizard that appears, select the 'Delimited' option. On the next screen, choose 'Comma' as your delimiter, check 'Include Field Names on First Row' if your target application requires headers, and click 'Finish'.

View and Edit Exported CSV Files Effortlessly with WPS Office
While Microsoft Access is required to handle your complex relational database queries, you can easily open, clean, and analyze your exported CSV files using WPS Spreadsheet—a free, lightweight, and highly compatible alternative to Microsoft Excel.
- 1. Open WPS Spreadsheet: Launch WPS Office on your computer and click on the 'Spreadsheet' module.
- 2. Import the CSV File: Go to Menu > Open, navigate to the folder where you saved your Access CSV export, and open it.
- 3. Format and Analyze Data: Use the built-in Text to Columns wizard, filters, and pivot tables to clean and prepare your data for its final destination.

Frequently Asked Questions
Why does my Access export fail when saving to the root C: drive?
Windows often restricts direct write access to the root C: drive for security reasons. Always export files to designated user profile folders like Documents, Desktop, or Downloads to prevent permission errors.
What is the difference between formatted and unformatted exports in Access?
Formatted exports attempt to preserve fonts, colors, and visual layouts, generating files like RTF or structured HTML, which are unsuitable for raw data import. Unformatted exports generate plain text or CSV files containing only your raw data separated by specific delimiters.
How do I ensure column headings are included in my CSV export?
During an unformatted export, the Export Text Wizard will appear. On the second step of this wizard, there is a dedicated checkbox labeled 'Include Field Names on First Row'. Check this box before proceeding to the final step.
Can I automate the process of exporting an Access query to a CSV file?
Yes. You can automate this process by creating an Access Macro using the 'ExportWithFormatting' action (leaving the output format blank to prompt the wizard) or by writing a VBA script utilizing the 'DoCmd.TransferText' method specifically set to export delimited data.




