Export Microsoft Access Data to CSV: What Changes, What Survives and When to Use It
A practical review of exporting Microsoft Access tables and queries to CSV with the Export Text Wizard or DoCmd.TransferText, covering what changes, what breaks and when CSV fits.
Exporting an Access table or query to a CSV file turns structured database records into plain delimited text that almost any spreadsheet, script or import tool can read. That portability comes at a cost: data types, formatting, relationships and some field kinds do not survive the trip. This review explains what the conversion changes, how the two main routes work (the Export Text Wizard and the DoCmd.TransferText method in VBA), and how to judge whether the result will hold up where you plan to use it.
A note on evidence: no version-specific test results, measurements or vendor documentation excerpts were supplied for this article. The guidance below is based on generally documented Access behavior and the nature of the CSV format. Where behavior can vary by Access version, regional settings or the receiving application, that is flagged, and you should confirm it with a small test export of your own data.
Is CSV export the right choice for your use?
CSV is a sound choice when the goal is moving flat, row-and-column data into another system: loading records into a different database, handing a list to a colleague who uses a spreadsheet, feeding a script or archiving a readable copy of a table. Its main benefit is that it is simple, widely accepted and inspectable in any text editor.
The decisive tradeoff is that CSV stores only text values separated by delimiters. It carries no data types, no field sizes, no validation rules, no lookups and no relationships between tables. The receiving application has to guess or be told what each column means, and that guessing is where most problems appear.
Another format is preferable when you need to keep structure. If the recipient also uses Access, transferring tables or the database file keeps types and relationships. If the recipient works in Excel and needs formatted values, exporting directly to an Excel workbook avoids some reinterpretation. If the data contains attachments, multivalued fields or rich text, CSV will not represent them faithfully. Use CSV when portability and simplicity matter more than preserving database structure.
Two ways to export: the wizard and DoCmd.TransferText
For one-off exports, the Export Text Wizard is the usual route. Select the table or query in the Navigation Pane, open the External Data tab and choose to export to a text file. The wizard lets you choose delimited output, pick the delimiter (a comma for CSV, a tab for TSV), set a text qualifier, and decide whether the first row should contain field names. Its Advanced options let you set the code page or encoding, date order and separators, and decimal symbol, and save those choices as a reusable export specification. At the end, you can also save the whole export as a named step to rerun later.
For repeatable or automated exports, VBA's DoCmd.TransferText method performs the same job from a macro, button or scheduled routine. Its arguments are, in order: the transfer type, an optional saved specification name, the table or query name, the output file name, whether to include field names, an HTML table name that applies only to HTML transfers, and an optional code page. For a delimited export, the transfer type is acExportDelim.
' Export a saved query to CSV with field names in the first row
DoCmd.TransferText _
TransferType:=acExportDelim, _
SpecificationName:="", _
TableName:="qryActiveCustomers", _
FileName:="C:\Exports\ActiveCustomers.csv", _
HasFieldNames:=True
When no specification name is given, Access applies its default delimited settings, which in typical configurations means comma-separated values with text wrapped in double quotes. If you need a different delimiter, a specific encoding, or particular date handling, create and save a specification through the wizard's Advanced options and pass its name as the second argument. The table and query names and the file path in the example are placeholders; the folder must already exist and be writable.
' Same export using a saved specification that sets delimiter and encoding
DoCmd.TransferText acExportDelim, "ActiveCustomers Export Spec", _
"qryActiveCustomers", "C:\Exports\ActiveCustomers.csv", True
Exporting a query rather than a whole table is often the better habit. A query lets you choose columns, filter rows, fix their order and convert awkward fields into clean text before export, so the CSV contains only what the recipient needs.
What the conversion actually changes
Export to CSV does not reverse, mirror or restyle characters. It changes how data is stored, not how text looks: each field value is written out as characters in a text file, with delimiters between fields and line breaks between records. Everything the database knew about those values, beyond the characters themselves, is dropped.
| Element in Access | What happens in CSV |
| Data types (number, date, currency, yes/no) | Written as text; the receiving tool must reinterpret them |
| Field formats and input masks | May or may not be applied depending on export options; verify with a test |
| Leading zeros in text fields | Kept in the file, but spreadsheets may strip them on opening |
| Long Text with line breaks | Kept inside quotes; some readers split these into extra rows |
| Lookup fields | Usually exported as stored values or displayed text depending on setup; check the output |
| Attachment and multivalued fields | Not represented usefully; restructure with a query first |
| Relationships, indexes, validation rules | Not included |
| Non-English and special characters | Preserved only if the chosen encoding supports them |
Text qualifiers matter more than they appear to. If a value contains the delimiter, a quote mark or a line break, it must be wrapped in the qualifier so the reader does not split it. Removing the qualifier to make a file look cleaner is a common source of broken imports when any value contains a comma.
Encoding deserves deliberate attention. Older default code pages can only represent a limited set of characters, so accented names, non-Latin scripts, emoji or decorative Unicode characters stored in a field can turn into question marks or garbled sequences. Choosing a Unicode encoding such as UTF-8 in the export specification, or through the code page argument, is the usual remedy. Which options appear, and how reliably the code page argument behaves, can depend on the Access version, so confirm by opening the output in a text editor that shows the encoding.
Will the file stay readable and usable after sharing?
Because CSV is plain text, the file itself is readable in any editor and works with screen readers as ordinary text, though a long row of comma-separated values is hard to follow by ear. For people who need to review the data rather than process it, a spreadsheet or a formatted report is usually more accessible than raw CSV.
Most usability problems come from the application that opens the file, not from the file. Spreadsheet programs often convert values automatically when opening a CSV directly: leading zeros vanish from ZIP codes and part numbers, long ID numbers may switch to scientific notation, and text resembling a date can become a date. Using the spreadsheet's import feature and marking sensitive columns as text avoids most of this. No scoped test of a specific spreadsheet version was supplied here, so treat these as common risks to check rather than guaranteed outcomes.
Regional settings are another limit. In some regions the comma is the decimal separator, and spreadsheets there may expect semicolons between fields. A CSV that opens cleanly on one computer can collapse into a single column on another. If recipients are in different regions, agree on the delimiter, decimal symbol and date format in advance, or use tab-separated output to sidestep comma conflicts.
- Checks before sending an exported CSV:
- Open it in a plain text editor and confirm the delimiter, qualifier and header row look as expected.
- Search for a few records with accented or special characters and confirm they display correctly.
- Find a record with a comma, quote or line break in a text field and confirm it is quoted properly.
- Compare the row count with the source table or query.
- Import it into the actual destination system once before relying on the process.
Bottom line
Exporting Access data to CSV is a reliable way to move flat records between systems when you control three things: what you export (preferably a query that cleans and selects fields), how it is written (delimiter, text qualifier and Unicode encoding, saved in a specification), and how it is opened (an import step that keeps text columns as text). Use the Export Text Wizard for occasional exports and DoCmd.TransferText with a saved specification when the export needs to repeat. When you need to keep data types, relationships, attachments or formatting, choose a structured format instead of CSV.