Function IsLoaded(ByVal strFormName As String) As Boolean
' 如果指定窗体在窗体视图或数据表视图中打开,返回 True。
Dim oAccessObject As AccessObject
Set oAccessObject = CurrentProject.AllForms(strFormName)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView <> acCurViewDesign Then
IsLoaded = True
End If
End If
End Function
isloaded函数检测密码窗体是否关闭,关闭了再自行下一句,否则一直循环
do until isloaded("密码")=false
doevents
loop作者: zhuyiwen 时间: 2003-7-3 19:07
将该窗体的"模式"属性设为"是".