【发布时间】:2011-09-20 18:15:37
【问题描述】:
我从一个模块调用一个表单,并希望在完成该模块的其余部分之前等待表单关闭。等待的正确方法是什么?
我有一个 IsOpen("formname") 函数来检查表单是否仍然打开。
【问题讨论】:
我从一个模块调用一个表单,并希望在完成该模块的其余部分之前等待表单关闭。等待的正确方法是什么?
我有一个 IsOpen("formname") 函数来检查表单是否仍然打开。
【问题讨论】:
当你发起DoCmd.OpenForm时设置WindowMode:=acDialog
这是从其他 Office VBA(Excel、Word、VB6、VB.Net)完成的方法 使用以下代码模态调用表单
Dim f as new FormNameHere
f.Show True 'True is the option for Dialog in VB
' form will be displayed until the user dismisses it then execution continues
set f = Nothing
否则:
f.ShowDialog
【讨论】: