References Property

Microsoft Access Visual Basic

References Property

       

You can use the References property to access the References collection and its related properties, methods, and events.

expression.References

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

This property is available only by using Visual Basic and is read-only.

The References collection corresponds 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.

Example

The following example displays a message indicating the number of boxes checked in the References dialog box.

MsgBox "There are " & Application.References.Count & " references."