ADO » Errors » Count

The Count property returns a long value that is the number of items in the collection. The counting starts at zero. You can use this value to loop through the collection by iterating from zero to the value of Count minus one.

Examples

Code:
intCountNumber = objConnection.Errors.Count
Code:
For Each objProperty In objConnection.Errors
   ' place code here to manipulate each item in collection
Next
Explanation:

You can also use the VB/VBScript For Each ... Next statement.