Don't release from inside the form. In cmdOK.click you can do
ThisForm.Visible = .F.
>Craig,
>
>Thanks for your quick reply.
>
>I had tried what you suggested. But, I must be doing something wrong. Unless I release the form in in cmdOK.Click code, I never return from the call to oFrm.Show().
>
>But, if I do release from within the form, I no longer have the oFrm object to work with.
>
>My form is modal. is that the problem?
>
>Thanks
>Jim
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer