NextIf

The NEXTIF field tells Word to move to the data file's next record, but only if the conditions you specify are met.

Note

NEXTIF is an archaic field left over from Word 2. Microsoft recommends that you use Query Options instead, available as part of step 3 in the Mail Merge Helper.

If you must use NEXTIF, insert it as part of the mail merge process by choosing Next Record If… from the Insert Word Field button on the Mail Merge toolbar.

Syntax

{ NEXTIF Expression1 Operator Expression }

Switches

The following operators work with the NEXTIF field:

SwitchMeaning
=Equals
>Greater than
<Less than
>=Greater than or equal to
<=Less than or equal to
<>Not equal to

Examples

To include the next record in a mail merge only if it's been more than 90 days ...

Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.