Export Microsoft Access Data to CSV
How exporting an Access table or query to CSV works, what changes in the data, and when it fits your workflow.
Exporting from Microsoft Access to CSV turns a table or query into a plain, comma-separated text file that almost any spreadsheet, database or script can read. This review covers what the export changes, how to keep the result readable and usable, and when a different format is the better choice. No specific Access version was tested for this article, so treat menu names as general guidance and check them against your installation.
Is CSV the right format for your Access data?
CSV is a sound choice when you need to move rows of data into another program, share data with someone who does not have Access, or feed an import process that expects delimited text. Its main benefit is portability: the file is readable as plain text and is widely accepted as an import format.
The decisive tradeoff is that CSV holds values only. Field data types, relationships, indexes, validation rules, forms, reports and macros do not survive the export. Anyone or any system reading the file has to infer or reapply that structure.
Another format is usually preferable when you need to keep data types or several related tables together (consider exporting to another Access database or to a spreadsheet format), when the data contains attachments, embedded objects or multivalued fields, or when people will read the output as a formatted document rather than process it.
What the export actually changes
In this context, the transformation is a conversion from structured database records to delimited text. It does not reverse, mirror or restyle characters, and it does not alter your Access database. The source table or query stays as it was, and Access writes a new text file.
In that file, each record becomes one line and each field becomes a value separated by a delimiter, usually a comma. Text values can be wrapped in a text qualifier, typically double quotes, so that commas inside a value are not mistaken for separators. You can optionally write the field names as the first row.
The characters themselves change in two ways that matter:
- Encoding: the text is written in a code page you choose. If it does not cover the characters in your data, such as accented letters or non-Latin scripts, those characters can be lost or replaced. A Unicode option such as UTF-8 is the safer default for mixed-language data.
- Formatting: dates, numbers and currency become text. How they look depends on export settings for date order, date delimiter, four-digit years, leading zeros in dates and the decimal symbol, and on whether you export with the field formatting applied.
How to run the export
In current desktop versions, the usual path is to select the table or query in the Navigation Pane, open the External Data tab, and choose to export as a text file. The Export Text Wizard then walks you through the main choices. Labels can vary between versions.
- Set the file name and give it a .csv extension. The wizard may suggest a .txt name by default.
- Decide whether to export data with formatting and layout. This applies display formats but limits some later options, so check the result.
- Choose Delimited rather than Fixed Width.
- Select comma as the delimiter and double quote as the text qualifier.
- Tick the option to include field names on the first row if the receiving system expects headers.
- Use the Advanced button to set the code page and date and number formats, and save these as an export specification if you will repeat the export.
- At the end, optionally save the export steps so you can rerun the same export later.
For repeated or automated exports, VBA can call the same mechanism. The example below assumes a saved export specification named CustomersSpec, a table named Customers, and a target folder that already exists. Replace these with your own names.
DoCmd.TransferText acExportDelim, "CustomersSpec", "Customers", "C:\Exports\Customers.csv", True
Exporting a query instead of a table lets you choose columns, filter rows, sort and rename fields before they reach the file. This is often the cleanest way to control exactly what the CSV contains.
Will the file stay readable and usable after sharing?
Because CSV is plain text, it copies, emails and versions cleanly, and there is no hidden styling to lose. Most usability problems happen when the file is opened, not when it is created.
- Spreadsheet interpretation: a spreadsheet program may reformat values when it opens a CSV. Examples include dropping leading zeros from codes, converting long numbers to scientific notation, or reading dates in a different order. The CSV may be correct while the display is wrong. Importing with explicit column types avoids most of this.
- Regional settings: some locales expect a semicolon rather than a comma as the list separator. A comma-delimited file opened in such an environment may land in a single column.
- Encoding detection: a program that guesses the wrong encoding can show garbled characters even though the file is intact. Reopening with the correct encoding fixes this.
- Line breaks inside long text fields: values with embedded line breaks should be enclosed in the text qualifier. Some consumers still split them into separate rows, so test with your actual destination.
- Non-text fields: attachments, embedded OLE objects and multivalued fields do not translate into meaningful CSV values. Review or exclude them before exporting.
Accessibility is generally favorable. A CSV opened in a spreadsheet presents ordinary cells that screen readers can navigate, and the reading order follows the column order you exported. Clear header names in the first row make the data much easier to understand with assistive technology. This article does not include testing with any specific screen reader or destination program, so confirm behavior in the tools your readers actually use.
Checking the result
Before relying on an export, open the file in a plain text editor rather than a spreadsheet. This shows the real contents: the delimiter, the quoting, the header row, the date and number formats, and whether special characters came through. Compare the row count with the source table or query. Spot-check records that contain commas, quotes, line breaks or non-English text, since those are where problems most often show up.
Gaps in this review
No version-specific testing, documentation excerpts or measured results were available for this article. Exact menu labels, the available code pages, and how Access handles long text, lookup fields and formatted exports may differ across Access versions. Confirm these against your own installation and a sample export before using CSV output in production.