Access/VBA Library

formCount Property

The number of forms on the current website.

Syntax

clsIE.formCount
Parts
Name Type Description
clsIE   The name of an object of type clsIE
Return value

Long : The number of forms found on the current website.

clsIEtag:clsIE
Example
' Get the number of forms
Dim IE As New clsIE

IE.location = "https://www.bbc.com/"

MsgBox IE.location & " has " & IE.formCount & " forms"