Forum Discussion

DonaldCollins's avatar
DonaldCollins
Copper Contributor
Mar 01, 2021

03 Access output to Excel truncates data

Hi Community,
We have an Access "Long text" data type field.
In the Access report, all the data in the field is displayed.
When the data is exported to excel, the field is truncated.
What is weird is that the truncation in excel does NOT start at 255 characters, but more downstream so to speak.
For example, in the table and the report a long text field record has 15,460 characters.
But when exported to excel it contains only the first 13,212 characters and truncates the remaining 2248 characters of the long text field.
Please advise! 
Thank you for your time.
Best Regards,
Donald

16 Replies

    • MariaBarnes's avatar
      MariaBarnes
      MVP
      Not yet, no. Reading between the lines of their answer I would guess 6 months or so to expect a response.
  • You do not say what version of Excel you are using. Excel actually has quite a long limit more like 32,000 to the definition of what can be stored in a cell, however what actually displays in a cell can be less that that for older versions (2003 and older). In more current versions it should be the same. Can you copy and paste the value manually from Access to the Excel result and then see the whole result?
    • DonaldCollins's avatar
      DonaldCollins
      Copper Contributor
      Hi Maria,
      Thank you for your help.
      Sorry - you're right I should have included that - they're both 365...
      MS Excel for MS 365 MSO (16.01....) 64-bit
      MS Access for MS 365 MSO (16.01...) 64-bit

      Excel's 32k cell limiit - that's the other oddity as you found too, the cell has plenty of room to hold the data coming from Access.
      Yes, we can copy and paste manually form Access to Excel, no problems.
      But when this Access form button exports table data to excel , it has truncation.
      Perhaps that is where the issue is ? At the form/macro./vb layer?
      Best Regards, Donald
      • MariaBarnes's avatar
        MariaBarnes
        MVP
        Thanks Donald. Can you explain exactly how you are exporting to Excel? Are you opening the report in Print Preview mode and then using the Excel export on the Data section of the ribbon?

Resources