>>
>>FOR EACH oForm in Application.Forms
>> IF TYPE("oForm.name") = "C"
>> oForm.Release()
>> ENDIF
>>ENDFOR
>>
>
>I didn't try using type("oForm.name"); could have been the solution. But I change it completely. Thank you; I will remember this for the next time.
The oForm.Name is just checking to see that the form object is actually there before trying to release it.