padlocked17
Registered User.
- Local time
- Yesterday, 18:23
- Joined
- Aug 29, 2007
- Messages
- 276
I'm using the following piece of code air code. How would I change this to loop through and close certain forms if they are open.
I would you an If ElseIf, but I need each statement to be evaluated so that if multiple forms are open, each one that I specify will be closed.
I would you an If ElseIf, but I need each statement to be evaluated so that if multiple forms are open, each one that I specify will be closed.
Code:
Select Case CurrentProject.AllForms("NameOfForm").IsLoaded
Case "frmEnroll"
Debug.Print "Enrollment Form"
Case "frmPPEnrollment"
Debug.Print "PP Enrollment Form"
Case Else
Debug.Print "Some Other form"
End Select