AllForms.Count Property (Access)

You can use the Count property to determine the number of items in a specified collection. Read-only Long.

expression .Count

expression A variable that represents an AllForms object.

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. 
' Determine the number of forms (open or closed) 
' in the current database.