Microsoft Knowledge Base

Blank ELSE Causes Incorrect Result in Converted Document

Last reviewed: July 31, 1997
Article ID: Q165636
The information in this article applies to:
  • Microsoft Word for the Macintosh, versions 4.0, 5.0, 5.1, 5.1a, 6.0, 6.0.1, 6.0.1a
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c

SYMPTOMS

When you save a mail merge main document containing conditional MERGEFIELD statements as a Word for the Macintosh 4.0 or 5.x document, the information in the ELSE statement of a conditional MERGEFIELD statement is lost.

NOTE: When you open a Word 6.0/95 file in Word for the Macintosh 4.0 or 5.x using the Word 6.0 for Macintosh and Windows converter, the field is lost; all that remains is the text reflecting the results of the first record evaluated by the conditional statement.

WORKAROUND

Re-create the conditional MERGEFIELD statement.

NOTE: You may have to reattach the data source if you use the Print Merge Helper.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The conversion process does not correctly handle the conditional MERGEFIELD statement. For example, if the statement in Word 6.0 or 7.0 is:

   {IF {MERGEFIELD LastName}="Jones" "My last name is Jones" ""}

The same statement after opening the converted document in Word for the Macintosh 5.1 would appear as:

   <<IF <<LastName>>=”Jones”>>”My” <<ELSE>>”last”<<ENDIF>>

NOTE: Reopening the converted document into Word 6 or 7.x shows the statement as:

   {IF{mergefield LastName}=”Jones” "My" "last"}

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q105893
   TITLE     : How to Toggle Field Codes Off and On in Word


Additional query words: conditional print merge
Keywords : kbmerge kbusage
Version : 4.0 5.0 5.10 5.1a 6.0.1 6.0.1a
Platform : MACINTOSH WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 31, 1997
©1997 Microsoft Corporation. All rights reserved. Legal Notices.