How to Fix Line Breaks Missing in Access Long Text Fields from Excel
Question details
Users need to ensure that multi-line text from Excel retains its line breaks when imported into a Microsoft Access Long Text field without displaying artifact text.

- Product
- Microsoft Excel & Access
- Device & OS
- not provided
- Scenario
- Importing an Excel spreadsheet containing cells with multiple lines of text into a Microsoft Access database.
- Observed behavior
- Line breaks created with CHAR(10) in Excel are either ignored in Access or converted into visible text artifacts like _x000D_, resulting in a continuous string of text.
Verify whether your Access Long Text field has its Text Format property set to Plain Text or Rich Text, as this dictates how line breaks are processed.
Use Both Carriage Return and Line Feed Codes in Excel
Update your Excel formulas to use a combination of CHAR(13) and CHAR(10) to ensure Access recognizes the standard Windows line break.
While Excel natively uses a single line feed character to break lines within a cell, Access Plain Text fields require both a carriage return and a line feed to render the break properly during data imports.
Launch Microsoft Excel and open the workbook containing the text data you plan to export.
Locate any formulas generating line breaks (typically using `CHAR(10)`). Update them to include the carriage return by changing `CHAR(10)` to `CHAR(13)&CHAR(10)`.
Save the Excel workbook. Open Microsoft Access, navigate to the 'External Data' tab, select 'New Data Source', and import the updated Excel file.

Clean Artifacts and Link the Excel Table
If encoded characters like _x000D_ continue to appear, clean the artifacts in Excel and use a Linked Table in Access.
Try WPS Office for Seamless Spreadsheet Management
Dealing with complex data formatting across different software can be tedious. WPS Office provides a powerful, free, and lightweight alternative to Microsoft Office. With WPS Spreadsheet, you can effortlessly manage complex text fields, standard Excel formulas, and seamless CSV exports to ensure your database imports run perfectly every time.

Frequently Asked Questions
Why does Excel use CHAR(10) while Access requires CHAR(13) and CHAR(10)?
Excel natively uses a line feed (CHAR(10)) to trigger a visual new line inside a cell. However, Microsoft Access strictly follows the standard Windows text rendering format for Plain Text fields, which requires a combination of a carriage return (CHAR(13)) and a line feed (CHAR(10)) to register as a new paragraph.
How do I fix the _x000D_ text already present in my Access database?
The _x000D_ text is a hexadecimal representation of a carriage return. To fix this within Access, you can run an Update Query on the affected table. Set the 'Update To' row of the query to: `Replace([FieldName], "_x000D_", Chr(13) & Chr(10))`.
Can I use HTML tags for line breaks in Access Long Text fields?
Yes, but only if the Long Text field's 'Text Format' property is set to 'Rich Text'. In Rich Text mode, Access interprets HTML tags, meaning you would use `<br>` or `<div>` tags in your Excel text instead of CHAR(13)&CHAR(10) to create line breaks.




