Microsoft KB Archive/60129

Word: Restrictions on Using IF Statements in Tables

PSS ID Number: Q60129 Article last modified on 03-07-1997

=
========================================================= 4.00 5.00 5.10 MACINTOSH kbprint

= SUMMARY =

Word 4.0 and 5.x
When using IF statements in a Microsoft Word table, you must have the ENDIF statement inside the same cell as the IF statement that it is associated with. In addition, if you are using an ELSE clause or any other statement that is associated with the IF statement, it must also be in the same cell as the IF statement.

If parts of the IF statement are not together in the same cell, you may receive one or more of the following error messages:

IF statement not entirely within the cell

ENDIF or ELSE without IF

NOTE: Word 6 does not use the IF statement to skip blank lines. To skip blanks in the resulting merge document when the record does not contain data for a field, choose the “Don t print blank lines when data fields are empty” option. To access this option, set up both the main and data documents using the Print Merge Helper and then click on the Merge button.

= REFERENCES =

“Microsoft Word User s Guide,” version 6.0, pages 697-701

KBCategory: kbprint KBSubCategory: kbfield kbmerge kbtable Additional reference words: macword macword5 4.00 5.00 5.10 6.00 ====================================================================== ============================================================================= Copyright Microsoft Corporation 1997.