E.19. The References Collection and Reference Object
When programming in Access you can use not only the various Access objects detailed in this appendix, but also objects from other applications, such as Excel, Word, Outlook, or non-Microsoft programs like AutoCad and Peachtree Accounting. In order to use these other object models, you need to set a reference to their type libraries. The References collection contains a reference for every external type library you add to the References dialog box within your code.
E.19.1. Reference Object Properties
The properties of the Reference object are listed in the following table.
Property | Data Type | Description |
---|---|---|
BuiltIn | Boolean | Specifies whether a reference points to a default Reference necessary for Access to function properly |
Collection | References object | Returns a reference to the collection that contains an object |
FullPath | String | Specifies the path and file name of the referenced type library |
Guid | String | Returns a GUID that identifies the type library in the registry |
IsBroken | Boolean | Specifies whether a Reference object points to a valid reference in the registry |
Kind | Vbext_RefKind (vbext_rk_Project, vbext_rk_TypeLib) | Specifies the type of reference that a Reference object represents |
Major | Long | Specifies the major version number of an application you're referencing |
Minor | Long | Specifies the minor version of the application you're referencing |
Name | String | The name of the Reference object |
Get Access 2003 VBA Programmer's Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.