MailMergeInsertNextIf

Syntax

MailMergeInsertNextIf .MergeField = text, .Comparison = number, .CompareTo = text

Remarks

Inserts a NEXTIF field into a main document at the insertion point. If the comparison in the NEXTIF field is true, Word merges the next data record into those merge fields in the current merge document that follow the NEXTIF field. Otherwise, Word merges the next data record into a new merge document. In general, it is preferable to specify query options instead of using NEXTIF fields. For argument descriptions, see MailMergeInsertIf.

See Also

InsertField, MailMergeInsertIf, MailMergeInsertNext, MailMergeInsertSkipIf