I need to be able to determine if an MDI child form is already open.
I have the following function
Public Function IsLoaded(frmName As String) As Boolean
Dim frm As Form
For Each frm In Forms
If frm.Name = frmName Then
IsLoaded = True
IsLoaded = False
The problem with this is that it loops through all forms in the project, not just the open forms, thus always returning TRUE from the function.
How do I get the function to only loop through forms that are open?