Chart on a form

J

Jason

I have a form with a chart and I keep getting the
following error on closing the form:

"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."

When I double click on the chart to activate it and then
close the form, I do not get the error.

What can I do to prevent this error?

Thanks in advance,

Jason
 
T

TC

Not sure! But here's what I'd try. Go in to the form's code module (I assume
that it has one), & add this line at the very top:

#if false then

and this one at the very bottom:

#endif

This will have the effect of suppressing the whole code module (without
actually having to delete it). If the error stops hapenning, you know that
it is something to do with your code. Re-introduce it bit by bit, to
narrow-down where the error is coming from. If the error >does< still occur
when the module is suppressed, at least you know that it is nothing to do
with the code. In that case, I'd start looking at the properties of the
form, & of the chart control.

HTH,
TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top