A newer version of this page is available. Switch to the current version.

MERGEFIELD

MERGEFIELD

MailMerge field

{ MERGEFIELD "field name" [ switch ] [* MERGEFORMAT] }

When the main document is merged with the selected data source, information from the specified data field is inserted in the place of the merge field.

  • The * MERGEFORMAT switch retains the formatting applied to the field.
  • The \b "text" switch specifies the text to be inserted before the MERGEFIELD field if the field is not blank.
  • The \f "text" switch specifies the text to be inserted after the MERGEFIELD field if the field is not blank.

Example:

{ MERGEFIELD FirstName \f" " }{ MERGEFIELD MiddleName \f" " }{ MERGEFIELD LastName }

  • If the MiddleName field data is missing (null), then there is only one space between FirstName and LastName:

    David Bradley

  • Otherwise, the MiddleName is separated by spaces as required:

    David M Bradley