启动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