>I have the following problem :
>
>When i call screen.activeform from menus or toolbars and form contains an OLE object (for example wang image) doesn't references to form but to OLE object.
>I want to reference to form.
>
>How can i do this ?
I've seen this problem posted here before and the solution is to ue _Screen.ActiveForm.Parent. But you should check the BaseClass of ActiveForm and if it isn't Form then use the above.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao