>Have you tried using the LINKED keyword?
The LINKED is used to associate the closing of a form when we do RELEASE myformlinkname.
>In the VFP help in says...
>The LINKED keyword of the DO FORM command allows you to link the form to the form object. If you include the LINKED keyword, when the variable associated with the form object goes out of scope, the form is released.
>Example: DO FORM Customer NAME frmCust2 LINKED
You just mentioned it "when the variable associated with the form object goes out of scope". What we need here is the reverse.