Microsoft KB Archive/288877

= ACC97: Memo Field That Is Exported to RTF Format May Be Truncated =

Article ID: 288877

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q288877



Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
When you export a report that contains a Memo field to an RTF format file, the data of the Memo field may be truncated. Furthermore, when you view the file in a word processor, the last pages of the file may contain random fragments of the Memo field.



CAUSE
This problem occurs when the Memo field contains two consecutive paragraphs marks (hard returns), that is, a hard return is followed immediately by a second hard return. There are two primary causes for consecutive hard returns:
 * 1) A user has inserted the consecutive hard returns. In Access, a user can insert a hard return by pressing CTRL+ENTER from a text box control in a form. Datasheet view does not allow the insertion of hard returns.
 * 2) When the RTF converter encounters the end of a line of text, it inserts a paragraph mark. If a line of text has been closed with a paragraph mark, and the line termination occurs within one character space of the right edge of the text box control, the RTF converter inserts a paragraph mark between the end of the line and the existing paragraph mark.



RESOLUTION
Preventing the problem from occurring can be labor intensive and applies only to Access 97:
 * 1) Check the report in print preview. The line spacing in the text box containing the Memo field should make it apparent that it contains two consecutive hard returns that have been intentionally placed.
 * 2) Remove the second of any consecutive hard returns that have been intentionally entered.
 * 3) Export the report to RFT format and open it in a word processor, such as Microsoft Word, and display formatting marks.
 * 4) Check for truncated data and consecutive hard returns.
 * 5) If it is apparent that data is missing, or if the last pages of the document contain random portions of the Memo fields, return to Design view of the report.
 * 6) Select the appropriate text box control and decrease the Width property by 0.002&quot;. This should be sufficient to force the word before the user inserted hard return to move to the next line. Keep the size changes small to reduce the chance that a change in the width of the control will create the problem in a different record.
 * 7) Continue exporting the report to RTF format and checking the result until you are satisfied with the result.



STATUS
Microsoft has confirmed that this is a problem in Access 97.



MORE INFORMATION
The extent of the truncation can be determined by the following:
 * Locate the last occurrence of consecutive hard returns within the Memo field output.
 * Estimate the number of characters between that point and the preceding hard return.
 * A matching number of characters will be published after the consecutive hard returns. The remaining data from the Memo field will be missing from the output.

Additional query words: pra truncate memo RTF outputto OFF97

Keywords: kbbug kbnofix KB288877

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.