Using Access 2010. I have a query with several Memo fields in it that I would like to export to an Excel sheet. Every method I have tried so far has truncated the Memo fields:
DoCmd.TransferSpreadsheet
How can I get all the Memo data in my export, or at least the full 32767 characters that an Excel cell can display?
In the Access Navigation Pane, right-click the source object, point to Export, and then click Text File. You can also launch the Export - Text File wizard by highlighting the source object in the Navigation Pane and then on the External Data tab, in the Export group, click Text File.
Export into excel with option "Export data with formating and layout" set to YES. If this checkbox is not set to yes, access truncate texts to first 255 characters.
enter image description here
Adaam's suggestion was very helpful. I ended up doing this the following way:
SELECT INTO
automatically set them as Text.INSERT INTO
.Range.CopyFromRecordset
. I had to do this from the table instead of directly from the query because I had UDFs in my query.We are using older version of MS Access and XL and cannot upgrade so "export data with formatting and layout" is not available. Doing Copy > Paste Special > Text worked for our use case and didn't have to rework queries etc. but doesn't work if answer set is more than a few thousand rows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With