MERGEREC

Syntax:

MERGEREC

Description: Results in «MERGEREC». Use this in a mail merge to print the number of the corresponding merged data record in each resulting merged document. The number reflects the sequential order of the data records that were selected and possibly sorted for merging with the active main document. It does not indicate the actual order of the records as they occur in the physical data source.
Note: : A personnel database might contain thousands of records. However, to send a form letter to employees who've reached their five-year anniversary with your company, you'd select as your data source only the records of those five-year employees, a much smaller set of records. To print a physical record number, you must include a record number field in the data source and insert the corresponding merge field in the main document.

Field Value: «MERGEREC».

Switches: None.

example:
Invoice Number: = { PRINTDATE \@ "MMddyyyyHHmm" + MERGEREC }

The result might be:

Invoice Number for record 12, printed on Feb. 13, 2003 at 9:46:
  02132003094612