logo
search
File Format & Compatibility

How to Fix Access SaveAsText Incorrect UTF-16 BOM Export

Maira MehtabMaira Mehtab Sep 22, 2026 872 views

Question details

The user needs to resolve an issue where the Access Application.SaveAsText method exports files with a UTF-16 little-endian BOM, despite the actual content being 8-bit encoded.

Product
Microsoft Access 2021 (64-bit)
Device & OS
not provided
Scenario
Exporting form data or database objects using the VBA Application.SaveAsText method.
Observed behavior
The exported file applies a UTF-16LE BOM to 8-bit data, causing external applications that honor the BOM to display corrupted characters.
Before you start

Keep in mind that SaveAsText and LoadFromText are undocumented and officially unsupported VBA functions in Microsoft Access, meaning Microsoft may not provide a direct development patch for this behavior.

Solution 1Recommended

Convert the Exported File to Valid UTF-16LE Text

Since the BOM indicates UTF-16LE but the data is 8-bit, converting the actual text content to match the BOM is the safest way to prevent character corruption.

1
Export the database object

Use the Application.SaveAsText method in your VBA script to export your Access object to a text file as usual.

2
Read the file contents

Use an external script or a VBA ADODB.Stream object to read the exported file as 8-bit encoded text, ignoring the BOM mismatch temporarily.

3
Save with correct encoding

Write the text back into the file explicitly using UTF-16LE encoding so that the content matches the existing Byte Order Mark.

Report to Microsoft: Consider submitting this specific BOM encoding issue through the Microsoft Feedback Portal so their development team is aware of the 64-bit Access 2021 bug.
Free Microsoft Office alternative

Looking for a Reliable Office Suite? Try WPS Office

While Microsoft Access handles specialized database functions, for all your daily word processing, spreadsheet, and presentation needs, WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office. Enjoy a familiar interface and seamless migration.

  1. 1. Download the installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to install the suite.
  3. 3. Open your files: Launch WPS Office and easily open your existing Microsoft Office documents seamlessly.
Highly compatible with Microsoft Excel, Word, and PowerPoint formats (.xlsx, .docx, .pptx).Lightweight software that runs smoothly on Windows, Mac, and Linux devices.Free to use with a familiar, easy-to-navigate tabbed interface.Built-in PDF editor for comprehensive document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Access SaveAsText function include a BOM?

The Access SaveAsText method was originally intended for internal use to export database objects as UTF-16LE text. UTF-16LE standardly includes a Byte Order Mark (BOM) to indicate the text encoding to other applications.

Are SaveAsText and LoadFromText officially supported by Microsoft?

No, both SaveAsText and LoadFromText are undocumented and unsupported functions primarily used internally by Access. Consequently, Microsoft does not provide official development support or guaranteed bug fixes for them.

Why do corrupted characters appear in my exported file?

The corruption occurs because the file contains a UTF-16LE BOM, but the actual text data is exported in an 8-bit encoding. When external applications read the file, they honor the BOM and misinterpret the 8-bit characters as UTF-16, resulting in garbled text.