>Hi,
> I have tried to set THISFORM.myOle = .NULL. but I get error myole is not an property. Any thing goes wrong
Are you trying to do this in Destroy? That's too late, it should be sooner, wherever you release the form. If only using titlebar close, try the code in Queryunload...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.