Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Posts
    50

    Unanswered: OutputTo Excel, a TABLE, memo field problem

    Hi,
    I found a few posts that kind of address this, but none of the solutions work for me.

    I'm using the OutputTo command to send an Access 2003 table to Excel 2003. The table has memo fields and they are truncated in the resulting spreadsheet. The posts I found suggested exporting to a higher level of Excel (I can't because we still have users on 2003). Also suggested was to remove formatting, IIf statments, etc...none of which apply in this scenario.

    I tried using TransferSpreadsheet and got the same results.

    Is there another way? Please help! TIA.
    Joanne

  2. #2
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Columns in Excel thru v2003 are limited to 255 characters, which is why memo fields are truncated. I believe, but am not certain, that the same limit applies to the 2007 version as well. The only way I know to work around this would be to use a query to parse the memo field into multiple fields of 255 characters and then export the query to Excel.

    Excel is, after all, a spreadsheet program, and not really intended to store the kind of data a memo field is designed to hold.
    Last edited by Missinglinq; 12-20-08 at 22:28.
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Length of cell contents (Excel 2003) is 32000 characters. Only 1,024 will display in a cell, but you can see the rest in the formula bar.

    The limit of a memo field is 64000 characters, so there can be no perfect solution.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Jun 2008
    Posts
    50
    Thanks for the replies...

    The values in the Access table are correct. Here's a sample, len is <350 characters:

    25% Daniel L. Gendelman Present Interest Trust, Dated December 1, 1994 25% Joseph O. Gendelman Present Interest Trust, Dated December 1, 1994 25% Jordan A. Gendelman Present Interest Trust, Dated December 1, 1994 25% Juliana K. Gendelman Present Interest Trust, Dated December 1, 1994
    340 Royal Poinciana Way, Suite 305
    Palm Beach, FL 33480

    Here's what I get in Excel, just 255 characters:
    25% Daniel L. Gendelman Present Interest Trust, Dated December 1, 1994 25% Joseph O. Gendelman Present Interest Trust, Dated December 1, 1994 25% Jordan A. Gendelman Present Interest Trust, Dated December 1, 1994 25% Juliana K. Gendelman Present Intere

    Also, I see the exact same thing in the formula bar in Excel.

    I'm stumped.
    Joanne

  5. #5
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Sometimes setting up a pre-determined excel sheet with the cells formatted, and then writing vba code to populate the cells in that excel sheet works (I believe I did this once but you will have to write a bit of vba code. I think there's some good examples in the code bank on updating cells an excel sheet from a recordset.)
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  6. #6
    Join Date
    Jun 2008
    Posts
    50
    Thanks, PKStormy.

    I've done quite a bit of OLE to an existing Excel spreadsheet, so I'm fine with that. But, what do you mean by formatting the cells? That is, how would I format them to show more than 255 chars?

    TIA,
    Joanne

  7. #7
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    if i remember correctly, the Excel model inherently known to Access is well obsolete - and firmly stuck on 255 chars limit.

    see pootle's stuff (and my stuff if you have nothing better to do with your time) in the codebank on Excel from A - there is no none nil 255 char limit - the char limit is determined by the Excel version you have on your machine.

    izy
    currently using SS 2008R2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •