ACC97: Word Does Not Quit After "Merge It with MS Word" Fails

ID: Q179614


The information in this article applies to:
  • Microsoft Access 97


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

In Microsoft Access 97, when you use the "Merge It with MS Word" Wizard to merge a Microsoft Access table or query with a Microsoft Word 97 document, Microsoft Word 97 does not close automatically if the merge process fails.


RESOLUTION

You must manually close Microsoft Word 97 if the "Merge It with MS Word" Wizard fails.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97.


MORE INFORMATION

Steps to Reproduce Behavior


  1. In Microsoft Access 97, open a database and create the following new table:
    
             Table: Table1
             -------------------
             Field Name: Myfield
                Data Type: Text 


  2. Save the table as Table1. When prompted to create a primary key, click No.


  3. In the Database window, select the Table1 table.


  4. On the Tools menu, point to Office Links, and then click "Merge It with MS Word."


  5. When the wizard starts, click the "Create a new document and then link the data to it" option. Click OK.


  6. After a few minutes, the Mail Merge Wizard returns the following error message:
    
          Word could not merge the main document with the data source because
          the data records were empty or no data records matched your query
          options. 


  7. Click OK.

    Note that Microsoft Word 97 and the new merge document remain open.



REFERENCES

For more information about closing a Microsoft Word 97 Document through Automation, search the Microsoft Office 97 Automation Help File Index for "Closing a Microsoft Word Document."

For more information about obtaining the Microsoft Office 97 Automation Help File, please see the following article in the Microsoft Knowledge Base:

Q167223 Microsoft Office 97 Automation Help File Available

Additional query words: Word OLE Automation Quit Close

Keywords : kbinterop AutPrb
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb


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