>Hi Barbara
>
>I will give more details about what I want.
>
>Form1 calls form2. The user look for information on form2 and returns to form1. If the user closes the form2 I retain the form1, but if the user closes the form1 I would like to release the form2 if it is visible.
Antonio, what you need to do is store the form name for form2 into a form property on form1. Then when you start to close form1 check to see if form2 is still open (perhaps in the queryunload property). If so, close form2 first.
HTH
Barbara