Arriyel,
You should test the return value of _screen.QueryUnload() and only call Release() if .t. is returned.
>My mistake, the formset is modeless. Thanks for the help
>it worked perfectly.
>
>>Active form can be referred as _SCREEN.ActiveForm, i.e. you may use _SCREEN.ActiveForm.Release. However, if it's modal then you cannot use menu?