The creation and customization of database applications using Microsoft Access
Some clients like MS Excel support Cr-Lf within data, but only when you enclose it with quotation marks, like here "Test4 CrLf Test5"
Test1;Test2
Test3;"Test4
Test5"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I export query (built on-the-fly) data to a text file using DoCmd.TransferText acExportDelim.
Some fields contain CrLf.
When imported into Excel, each CrLf is considered a new row (even though the field data is wrapped in quotes), so the import is basically a mess.
I've tried replacing CrLf with Lf (or Cr), however, it seems that DoCmd.TransferText exports CrLf anyway.
Any ideas for a workaround?
The creation and customization of database applications using Microsoft Access
Some clients like MS Excel support Cr-Lf within data, but only when you enclose it with quotation marks, like here "Test4 CrLf Test5"
Test1;Test2
Test3;"Test4
Test5"