返回或设置一个 Boolean 值,指明指定的窗体是否支持处理的批更新。如果支持批更新,值就为 True。可读写。
expression.BatchUpdates
expression 必需。返回“Applies To”列表中的一个对象的表达式。
该属性仅在设计期间才可更改。在运行时,它是只读的。
下面的示例将检查指定的窗体,看它是否支持批更新,并显示一条错误消息以报告结果。
With Forms(0)
If .BatchUpdates = True Then
MsgBox "The """ & .Name & """ form supports batch updates."
Else
MsgBox "The """ & .Name & """ form does not support batch updates."
End If
End With