Microsoft KB Archive/80504

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for Macintosh, versions 5.0, 5.1

SYMPTOMS
If your print merge data document contains a blank field or if a field contains &quot;and&quot;, &quot;or&quot;, or &quot;not&quot; (such as &quot;City and State&quot; or &quot;City not State&quot;), any of the following problems may occur in Word for the Macintosh:

  After you use the Word Print Merge Helper to attach a data document to a main document, Word does not insert a DATA statement in your main document. Furthermore, the data field names do not appear in the Insert Field Name box on the Print Merge Helper bar. -or-   When you insert a DATA statement in your main document from the Insert Keyword box on the Print Merge Helper bar, the following error message occurs: Duplicate Field name in data document. If this message appears more than once, press COMMAND+PERIOD to cancel the message. -or-  The print merge operation fails and no error message appears to explain the failure. When this happens, another document may flash briefly on the screen, and then Word returns to the main print merge document.

RESOLUTION
Your data document cannot contain blank field names in Word version 5.0, but Microsoft corrected this problem in Word version 5.1. If you have Word version 5.0 and want to use data documents with blank field names, you must upgrade to Word version 5.1.

To obtain new or updated Microsoft products, call Microsoft Sales Information Center at (800) 426-9400. If you are outside the United States, contact the Microsoft subsidiary for your area. To locate your subsidiary, call Microsoft International Customer Service at (425) 936-8661.

MORE INFORMATION
In Word version 4.0, your data document can contain blank fields and fields that contain &quot;and&quot;, &quot;or&quot;, or &quot;not&quot;. As a result, the problems described in this article usually occur when you use a data document you created for a Word version 4.0 print merge.

Beginning with Word version 5.0, &quot;if&quot;, &quot;and&quot;, &quot;or&quot;, and &quot;not&quot; are defined as logical operators for use in conditional statements. This new functionality conflicts with their use as part of data field names.

For more information on reserved words, see page 607 of the &quot;User's Guide&quot; for Microsoft Word versions 5.0 and 5.1.