Access) (AllForms.Count 属性

使用 Count 属性确定指定集合中的项目数。 只读 Long。

语法

表达式。计数

表达式 表示 AllForms 对象的变量。

示例

例如,如果要确定数据库中当前打开或现有的表单数,可以使用以下代码字符串。

' Determine the number of open forms. 
 
forms.count 
 
' Determine the number of forms (open or closed) 
' in the current database. 
 
currentproject.allforms.count

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。