"Marcia" <mw*****@earthlink.net> wrote in message
news:cI******************@newsread3.news.atl.earth link.net...
Could someone help me with a function that returns True if there is any
other form open other than "MyForm".
Thank you!
Marcia
Marcia, try this:
Function IsOtherFormLoaded(ByVal MyFormName As String) As Integer
' Returns True if a form other than the specified form is loaded.
Dim i as integer
IsOtherFormLoaded = False
For i = 0 To Forms.Count - 1
If Forms(i).formName <> MyFormName Then
IsOtherFormLoaded = True
Exit Function
End If
Next
End Function