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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is a form already running?

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

Can someone tell me if there is a easy way to know if an instance of a form is already running? I want to prevent the users to open the same frame...

Thank you :)
 
Try this.
Code:
Function IsFormActive(strFormName as string) as boolean
Dim frm as form
For Each frm in Forms
    if Ucase$(frm.Name) = Ucase$(strFormName) then
         IsFormActive = true
         exit function
    end if
Next
IsFormActive = false
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top