ID: Q98836
The information in this article applies to:
In Word, you can include numeric values in a print merge data file to use in calculations in the main document. If any of the fields in the data file are blank, however, one of two error messages may appear in the merged document:
!Unexpected End of Expression
-or-
!Syntax Error
The drawback to this workaround is that it could become tedious to maintain for large data files.
-or-
{= {if {MERGEFIELD num1} <> "" {MERGEFIELD num1} 0} +
{if {MERGEFIELD num2} <> "" {MERGEFIELD num2} 0}}
Note: To create the curly field brackets, press CTRL+F9 (Windows) or COMMAND+F9 (Macintosh).
"User's Guide," version 2.0, pages 639-645
KBCategory: KBSubcategory: kbmerge Additional query words: 6.0 2.0 2.0a 2.0a-CD 2.0b 2.0c winword word7 word6 7.0 word95 winword2 word97 6.01 6.01a 7.0a macword
Keywords : kbprint kbualink97 kbmerge
Version : 2.x 6.0 6.0a 6.0c 7.0 7.0a
Platform : WINDOWS
Last Reviewed: February 6, 1998