Nov 8, 2001 #1 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
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
Nov 8, 2001 #2 nonguru Programmer Oct 18, 2001 197 AU I found this code at http://www.vbcity.comHope 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 Upvote 0 Downvote
I found this code at http://www.vbcity.comHope 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
Nov 8, 2001 Thread starter #3 raochetan Programmer Aug 20, 2001 62 IN Thanks nonguru Upvote 0 Downvote