Try this:
Give frmMain a special tag (like 25360) and use:
VB Code:
Private Sub cmdBack_Click() frmMain.Show Dim frm As Form For Each frm In Forms If frm.tag <> 25360 Then Unload frm Set frm = Nothing End If Next frm End Sub
|
Results 1 to 39 of 39
Threaded View
|
Click Here to Expand Forum to Full Width |