ACC2000: "Object Is Locked" Error Message When You Try to Close a Form That Contains an Embedded Object (308635)



The information in this article applies to:

  • Microsoft Access 2000

This article was previously published under Q308635
Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

SYMPTOMS

When you try to close a form that has an embedded Microsoft Graph 2000 Chart object, you may receive the following error message even though you did not make any changes to the object:
The object is locked, so any changes you make will be discarded when the form is closed. Click Save As/Export on the File menu and save the object under a different name.

CAUSE

This issue can occur if Access 2000 detects that the underlying source of the object has been modified.

RESOLUTION

To resolve this issue, set the object's Enabled property to No to avoid activating the object in-place by accident:
  1. Right-click the object on the form, and then click Properties.
  2. In the object frame properties window, locate the Enabled property.
  3. Set the Enabled property to No, and then close the object frame properties window.

MORE INFORMATION

Setting the object's Enabled property to No may change the background color of the object to gray. If you want a different color, right-click the object, click Fill/Back Color, and then click the color that you want.

For additional information about in-place activation of OLE objects, click the article number below to view the article in the Microsoft Knowledge Base:

209108 ACC200: How to Use In-place Activation with OLE Objects


Modification Type:MajorLast Reviewed:6/29/2004
Keywords:kbprb KB308635