以下是引用bigsea76在2004-11-9 17:18:00的发言:
给你个函数:
Public Function IsOpen(ByVal strFormName As String) As Boolean
Const ConDesignView = 0
Const conObjStateClosed = 0
IsOpen = False
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then
If Forms(strFormName).CurrentView <> ConDesignView Then
IsOpen = True
End If
End If
End Function
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |