References Collection

Description

The References collection contains Reference objects representing each reference that's currently set.

Remarks

The Reference objects in the References collection correspond to the list of references in the References dialog box, available by clicking References on the Tools menu. Each Reference object represents one selected reference in the list. References that appear in the References dialog box but haven't been selected aren't in the References collection.

You can enumerate through the References collection by using the For Each...Next statement.

The References collection belongs to the Microsoft Access Application object.

Individual Reference objects in the References collection are indexed beginning with 1.

Properties

Count property, Parent property.

Methods

AddFromFile method (References collection), AddFromGUID method, Item method, Remove method (References collection).

Events

ItemAdded event, ItemRemoved event

See Also

Reference object.

Example

See the Reference object example.