Applies To Controls collection, Forms collection, Modules collection, Pages collection, Properties collection, Reports collection.
Description
The Item property returns a specific member of a collection either by position or by index.
Setting
object.Item(index)
The Item property uses the following settings.Setting | Description |
object | One of the following collections: Controls, Forms, Modules, Pages, Properties, Reports. |
index | An expression that specifies the position of a member of the collection referred to by the object argument. If a numeric expression, the index argument must be a number from 0 to the value of the collection's Count property minus 1. If a string expression, the index argument must be the name of a member of the collection. |
Debug.Print Modules(0)
Debug.Print Modules.Item(0)
See Also
Controls collection, Count property, Count property ("DAO Language Reference"), Forms collection, Modules collection, Pages collection, Properties collection ("DAO Language Reference"), Reports collection.