Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Knowing weather a particular FORM is loaded

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
IN
Is it possible to know wheather a particular FORM is loaded or not. If so how? If not, what is the alternative?

Thanks in advance

raochetan
 
I found this code at Hope it helps s-)

Public Function FormLoadedByName(FormName As String) As Boolean
Dim i As Integer, fnamelc As String

fnamelc = LCase$(FormName)
FormLoadedByName = False

For i = 0 To Forms.Count - 1
If LCase$(Forms(i).Name) = fnamelc Then
FormLoadedByName = True
Exit Function
End If
Next

End Function

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top