Creating a Data Source File - Field Names

In order to create a merged document you first need to create a Data File (or Data Source) document. The Data Source is then used to create a Word template document. A Word template is a document that contains both text and field names.

The field names will later be replaced by information from your data source. The field names available for merging change depending on from where you are running the mail merge. The NewViews mail merge program can assist you in attaining a list of the available field name.

To create a Data File, follow the instructions below:

  1. Start by marking a single line of a NewViews table (i.e. a customer, vendor, sales invoice, employee, etc) in a block.

  2. Select Tools - Mail Merge - Block from the NewViews command bar.

  3. Leave the "Main Document" line (line 1) blank.

  4. Fill in the "Data File" with the name of a text file. NewViews will create this file. If the file already exists, it will be overwritten.

  5. Complete the rest of the prompt box as shown below

  6. Press F5 to continue

Three files are created as a result of the above operation. Assuming you used the same file name as shown in the above screen shot, these files are:

Mail Merge Files
1
MyData.txt or (.doc)
A completed data source file
2
MyData_readable_field_list.txt or (.doc)
A list of the available fields. Use this file as a guide when constructing your template document.
3
MyData_readable_data_records.txt or (.doc)
In addition to showing you the available fields, this file also shows you the resulting output from the fields.

Sample below - readable data records file


Copyright (c) 2003-2025 Q.W.Page Associates Inc., All Rights Reserved.