Private Sub Form_Open(Cancel As Integer) Dim MyFrm For Each MyFrm In CurrentProject.AllForms If MyFrm.IsLoaded = True And MyFrm.Name <> Me.Name Then DoCmd.Close acForm, MyFrm.Name End If Next End Sub
Private Sub Form_Open(Cancel As Integer) Dim MyFrm For Each MyFrm In CurrentProject.AllForms If MyFrm.IsLoaded = True And MyFrm.Name <> Me.Name Then DoCmd.Close acForm, MyFrm.Name End If Next End Sub