Previous icon

Next icon

Printing mail merge letters using an existing document

In the following example, letters are being prepared to mail to the parents of each future student who has an application with a certain status. A mail merge letter has already been created, using the crspFutureStatusChangePrint stored procedure.

An application has been entered for a future student on the Applications tab of the Future Student Maintenance window. See Future Student Maintenance - Applications tab in the Future students manual.

Future Student Maintenance - Applications tab

In this example, the application's status can be:

Modify Future Student Application window

Applications are selected for the mail merge based on their Status.

The values in the Status field on the Modify Future Student Application window are defined in the luFutureStatus lookup table. See luFutureStatus lookup table in the System maintenance manual.

Lookup Table Maintenance - luFutureStatus

The selected value (Testing, in this example) is linked to the luFutureStatusMerge lookup table using its MergeCode of T. When a status is changed to Testing, its MergeCode is also changed as well. Any applications with this MergeCode are selected by the crspFutureStatusChangePrint stored procedure. See luFutureStatusMerge lookup table in the System maintenance manual.

Lookup Table Maintenance - luFutureStatusMerge

To print mail merge letters using an existing document set up to use a stored procedure, such as the crspFutureStatusChangePrint procedure:

  1. Start Microsoft Word.

    The Microsoft Office Word window is displayed.

    Microsoft Office Word - Opening this document will run the following SQL command

    Note: See Stored procedures for details of each procedure.

  2. Click Yes button.

    The Microsoft Word document is opened with the latest data using the stored procedure and its current parameters.

    Microsoft Word

  3. Print the merged letters.
  4. Switch back to Synergetic to review the data changes that the procedure has made, if required.

    In this example, switch back to the History tab of the Future Student Maintenance window. See Future Student Maintenance - History tab in the Future students manual.

    Future Student Maintenance - History tab

  5. Click Refresh icon.

    The data that was updated using Microsoft Word is refreshed on the History tab, as highlighted below.

    Future Student Maintenance - History tab

Last modified: 20/12/2016 4:29:20 PM

See Also

Using stored procedures to retrieve Synergetic data

Stored procedures

Creating mail merge letters using stored procedures

Reprinting mail merge letters

© 2017 Synergetic Management Systems. Published 20 July 2017.

Top of page