{ MERGEFIELD FieldName [Switches]}
Displays the name of a data field within the "chevron" merge characters in a mail merge main document ù for example, «FirstName». When the main document is merged with the selected data source, information from the specified data field is inserted in place of the merge field.
In previous versions of Microsoft Word, merged documents frequently displayed double spaces in place of fields that mapped to missing data. Now you can use switches to specify which text is printed before or after the field results (provided that the field contains data).
You must select the data source for the main document before you insert merge fields.
Instructions
Switches
Example
Placing the following three MERGEFIELD fields together and using the \f switch as specified ensures that the three fields have spaces between them, but only if the designated field information is present in the data source.
{ MERGEFIELD CoutesyTitle \f " " }{ MERGEFIELD FirstName \f " " }{ MERGEFIELD LastName }
Results in: Ms. Anna Gerrard, if all fields are present; but Ms. Gerrard, if FirstName is missing from the data source.
Note If you must change the field name specified in a merge field, edit the field name in the MERGEFIELD field codes. Changing a field name with field codes hidden has no effect.