| title | AllViews.Item property (Access) | |
|---|---|---|
| keywords | vbaac10.chm12680 | |
| f1_keywords |
|
|
| ms.prod | access | |
| api_name |
|
|
| ms.assetid | 5fcdb90e-c70c-1a1f-153b-7c50e43308e8 | |
| ms.date | 02/01/2019 | |
| localization_priority | Normal |
The Item property returns a specific member of a collection either by position or by index. Read-only AccessObject.
expression.Item (var)
expression A variable that represents an AllViews object.
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| var | Required | Variant | An expression that specifies the position of a member of the collection referred to by the expression 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. |
If the value provided for the index argument doesn't match any existing member of the collection, an error occurs.
The Item property is the default member of a collection, so you don't have to specify it explicitly. For example, the following two lines of code are equivalent.
Debug.Print Modules(0)Debug.Print Modules.Item(0)[!includeSupport and feedback]