Jan 25, 2007 #1 bantakiah Programmer Oct 1, 2006 48 ID i have 10 form which mdi child properties is true. how to close all active form before open a new form?
i have 10 form which mdi child properties is true. how to close all active form before open a new form?
Jan 25, 2007 #2 HughLerwill Programmer Nov 22, 2004 1,818 GB This may help; Private Sub Command2_Click() Dim f As Form For Each f In Forms() On Error Resume Next If f.MDIChild Then Unload f On Error GoTo 0 Next End Sub Upvote 0 Downvote
This may help; Private Sub Command2_Click() Dim f As Form For Each f In Forms() On Error Resume Next If f.MDIChild Then Unload f On Error GoTo 0 Next End Sub