Chonny,
Pass the form name to the following function. Function will return true if form is open and false otherwise.
Function IsFormOpen(ByVal strFormName As string) As Integer
If SysCmd(acSysCmdGetObjectState, acForm,strFormName) <> 0 Then
If Forms(strFormName).CurrentView <> 0 Then
IsFormOpen = True
End If
End If
End Function
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com