Field codes: NEXT field
The NEXT field instructs Microsoft Office Word to merge the next data record into the current merged document, rather than starting a new merged document. Use the NEXT field to print a specific number of data records in a single merged document.
If your goal is to list information from several data records in the same document, such as a membership directory or a price list, don't use the NEXT field. Instead, select Directory
as the main document type when you start the mail merge.
Notes:
- Office Word automatically inserts this field when you set up a sheet of mailing labels as the main document during a mail merge.
- NEXT fields cannot be used in footnotes, endnotes, annotations, headers, footers, or data sources . A NEXT field cannot be nested within any other field or used with the SKIPIF field.
- Insert a NEXT field after the first set of merge (MERGEFIELD) fields in the main document; otherwise, Word skips merging the first data record.
- Repeat the set of merge fields and the NEXT field in the main document only the number of times that it takes to fill one page or to print the number of data records that you want.
Syntax
{ NEXT }
Note To see the field codes in a main document, press ALT+F9. To see field results again, press ALT+F9 a second time.
Example
The following example uses a NEXT field to advise recipients of the starting time of an appointment that follows their own.
Your appointment is from { MERGEFIELD "AppointmentStartTime" } to { MERGEFIELD "AppointmentEndTime" }. Your advisor has another appointment that begins promptly at { NEXT }{ MERGEFIELD "AppointmentStartTime" }, so please plan your time accordingly.
If the data source for this merge is sorted by AppointmentStartTime in ascending order, the resulting document looks like this:
Your appointment is from 10:00 to 10:55. Your advisor has another appointment that begins promptly at 11:00, so please plan your time accordingly.
Instructions
You can use the NEXT field in a document or as part of a mail merge.
To use the NEXT field in a document
- On the
Insert
tab, in theText
group, clickQuick Parts
, and then clickField
. - In the
Field names
list, selectNext
. - Click
OK
.
To use the NEXT field as part of a mail merge
While you are setting up the mail merge, do the following:
- On the
Mailings
tab, in theWrite & Insert Fields
group, clickRules
, and then clickNext Record
.