Microsoft KB Archive/166290

= ACC: Error Using Database Documenter If Objects Are Open =

Article ID: 166290

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q166290



Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
When you use the Documenter Wizard in a Microsoft Access database, some objects that are open may produce an error if you try to document them.

NOTE: The Documenter Wizard is called the Documentor Wizard in Microsoft Access 7.0.

In Microsoft Access 7.0 and 97, if you have a query open in either Datasheet or Design view when you document it with the Documenter, you receive the following error:

In Microsoft Access 97:

Invalid procedure call or argument

In Microsoft Access 7.0:

Invalid procedure call

In Microsoft Access 97, if you have a form open in either Form or Datasheet view when you document it with the Documenter, you receive the following error. You may also receive this error if the Relationships window is open when you try to document a form:

Application-defined or object-defined error

These error messages are followed by another message:

Unable to document  ''. Continue?

If you click Yes to continue the Documenter, it proceeds with the remaining objects it is able to document.

In Microsoft Access 7.0, if you try to document any object when the Relationships window is open, you receive this error:

The command or action 'CopyObject' isn't available now.

In Microsoft Access 97, if you try to document a module when the Relationships window is open, you receive the following error:

The command or action 'OutputTo' isn't available now.



RESOLUTION
Before you use the Documenter Wizard, close all open objects in the database.



Steps to Reproduce Behavior

 * 1) Start Microsoft Access and open the sample database Northwind.mdb.
 * 2) Open the Invoices query in Datasheet view.
 * 3) On the Tools menu, point to Analyze, and then click Documenter.
 * 4) In Microsoft Access 97, in the Documenter dialog box, click the Queries tab.

In Microsoft Access 7.0, in the Database Documenter dialog box, select Queries in the Object Type box.
 * 1) Click the Invoices query, and then click OK. Note the error messages you receive. Click No when prompted if you want to continue.

