How to close Caller Form After Displaying Callee Form?

emirce

Newcomer
Joined
Mar 5, 2003
Messages
2
Dear All,

In Form1 (which asks the user for a few parameters), I hit OK to open Form2, after which I want to discard (not simply hide) Form1.

Sub OpenForm2FromForm1()
Dim frm as New Form2
Form2.Show
'QUESTION: How to close Form1 at this point?
End Sub

If I close Form1, it automatically closes Form2 as well, as it loses the reference to it...

Thank you for your help!

Regards.
 
Back
Top