WD: Mail Merge Using a Microsoft Access Parameter Query

ID: Q155487


The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Access versions 2.0, 7.0


SYMPTOMS

This article describes how to merge a Word document with a Microsoft Access database using a parameter query.


MORE INFORMATION

A Microsoft Access parameter query extends the flexibility of other Microsoft Access queries by prompting the user to enter certain criteria each time the query is run.

This article assumes that there is a proper Access parameter query in Access. For information on parameter queries, see the "More Information" section at the end of this article.

To merge a Word document with a Microsoft Access query using a parameter query, use the following steps:

  1. Start a new Word document.


  2. On the Tools menu, click Mail Merge.


  3. Click the Create button on the Mail Merge Helper, and select the type of document to merge (such as Form Letter or Mailing Labels).


  4. Click New Main Document.


  5. Click the Get Data button, and select Open Data Source.


  6. Change the List Files to MS Access Databases (*.mdb), and change to the folder where Microsoft Access is located.


  7. Select the database you want to use, click the Select Method check box to select it (the Confirm Conversions check box in Word 6.x), and click the OK or Open button.


  8. In the Confirm Data Source dialog box, select MS Access Databases via DDE (*.mdb) and click OK.

    A Microsoft Access dialog box is displayed.


  9. Click the Queries tab.


  10. Select the Parameter Query from the list of queries, and click OK.


  11. A dialog box appears on the screen as a result of the parameter query.

    If the dialog box does not appear and Word doesn't seem to be responding, press the ALT+TAB keys once. The parameter query prompt dialog box should now appear.


  12. Type the information in the Parameter Query dialog box, and click OK.


  13. A Word dialog box appears. Click Edit Main Document.


  14. Insert the merge fields in the main document, and perform the mail merge as usual.


For more information on how to create a Microsoft Access Parameter Query, see Microsoft Access Help.

In Microsoft Access 7.0

  1. On the Help menu, click Answer Wizard.


  2. In Step 1, type in "How Do I Create A Parameter Query?", and click the Search button.


  3. In Step 2, under "How Do I", select "Create a Parameter Query That Prompts for Criteria Each Time It's Run", and click the Display button.


In Microsoft Access 2.0

  1. On the Help menu, click Search.


  2. Type parameter.


  3. Select "parameter query" and click Show Topics.


  4. Under Select a Topic, select "Creating a Parameter Query", and click the Go To button.



REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

Q141922 How to Start a Mail Merge

Q141992 How to Create Mailing Labels Using the Mail Merge Feature

Q141991 How to Create Envelopes Using Mail Merge

Q121109 Font Changes During Mail Merge

Q105745 Unable to See List of Merge Fields

Additional query words:

Keywords : word8 word6 word7 word95 offinterop officeinterop
Version : WINDOWS:2.0,6.0,6.0a,6.0c,7.0,7.0a
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: October 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.