AllForms.Count property (Access)
Use the Count property to determine the number of items in a specified collection. Read-only Long.
Syntax
expression.Count
expression A variable that represents an AllForms object.
Example
For example, if you want to determine the number of forms currently open or existing on the database, you would use the following code strings.
' Determine the number of open forms.
forms.count
' Determine the number of forms (open or closed)
' in the current database.
currentproject.allforms.count
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.