The information in this article applies to:
Advanced: Requires expert coding, interoperability, and multiuser skills. SYMPTOMSWhen you output a report to Microsoft Excel, any Memo field is truncated to 255 characters. You may also see this behavior when you click the Analyze It With MS Excel command while you are previewing a report. CAUSEIn Excel, the maximum length of text-cell contents is 32,000 characters. However, Access outputs a report to Excel 5.0/95 format, in which the maximum length of text-cell contents is 255. RESOLUTIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp Method 1Export the underlying table or query to Excel 2000 file format. To do so, follow these steps:
Method 2Create text boxes on the report to split the Memo field into 250-character strings. After you have output the report, reassemble those strings.For example, assume you have a Memo field named Notes, and in some records, the contents of that field is 700 characters long. You can create three text boxes in the report with each of the following three expressions as the control source for one of the text boxes: =Mid([Notes],1,250)After you have output the report to a spreadsheet, you can reassemble the segments of the Memo field. For example, the segments of the Memo field of the first record appear in cells B2, C2, and D2 respectively. You can reassemble the Memo field by typing the following formula in another cell, E2: =CONCATENATE(B2,C2,D2) )You can then copy this formula to the rest of the cells in column E to reassemble the Notes field for all of the records. Note that the CONCATENATE function returns the error #VALUE when you try to use the formula =CONCATENATE(B2:D2) )The address of every cell whose contents you want to include in the concatenated result must be listed separately. If the length of the data in the Memo field makes it necessary for you to create more than a few text boxes, you can use a Visual Basic for Applications procedure to automate the creation of those text boxes. The following example demonstrates how to use a procedure to create the text boxes, and then output the report and reassemble the contents of the text box.
=VALUE(LEFT(A1,FIND("M",A1,1)-1)) =CONCATENATE(A3,B3,C3,D3,E3,F3,G3,H3,I3,J3,K3,L3,M3,N3,O3,P3,Q3,R3,S3,T3,U3) STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information about loading the output of a report into Microsoft Excel, click Microsoft Access Help on the
Help menu, type "outputting data" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned. Additional query words: blob
Keywords : kbdta OtpProb OtpExl RptProb |
Last Reviewed: July 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |