Rabu, 17 Juni 2015

[MS_AccessPros] Win98 "The object is locked" message

 

I have a form containing a graph and text-boxes. I have code for various
mouse events on the graph, which is an "OLEunbound" object. When I close the
form without even touching the graph, I get the warning message:
"The object is locked, so any changes you make will be discarded when the
form is closed."

If I have operated the mouse events, or even just set the focus on the
graph, the form exits without the message. However I don't want to set the
focus on the graph because it gets a black border, and the grid lines
display on top of buttons that are normally on top of the graph.

I can avoid the message by setting the graph properties to disabled and
locked, but then I can't operate the mouse events.

I've tried adding code to the form's close-event but to no avail.

The warning occurs in Access 97 on Windows 98 but does not occur on XP, with
or without converting to Access 2003 format. I have trawled the forums;
others have had the same message but nobody has any suggestions other than
disabling the graph or giving it the focus.

Can anyone suggest a way of preventing the warning?
--
Dave W

__._,_.___

Posted by: "Dave W" <davewi11@yahoo.co.uk>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

.

__,_._,___

Tidak ada komentar:

Posting Komentar