>i have form2 that shows on top of form1. if my user clicks the "ok" button in form2, i want form1 and form2 to be released and show form3.
>
>i have this,
>
>
>thisform.release
>_screen.activeform.release
>if _screen.activeform.caption="form1"
> messagebox ("form1")
>endif
>if _screen.activeform.caption="form2"
> messagebox ("form2")
>endif
>do form form3
>
>
>thisform.release is supposed to release form2 and _screen.activeform.release is supposed to release form1. the code that follows is only to check what form is still active.
>
>why am i getting the messagebox form2 instead of do form form3?
Hi.
I can't tell you why this happens.
But i would suggest releasing form1 and form 2 explicitely and the DO form3.
Kamil
A moment of silence is our cosmic reset button.