ACC2000: How to Reference Classes That Exist in Multiple Libraries (209912)
The information in this article applies to:
This article was previously published under Q209912 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
If your Microsoft Access database contains a reference to multiple library
databases, type libraries, or object libraries, it is possible for the same
class name to exist in more than one referenced file. If you want to
declare a variable of that type, you must explicitly state which reference
contains the class that you want to use. This article shows you how to
specify a particular reference file in code.
REFERENCESFor more information about setting references, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type references command (tools menu) in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about using the Object Browser, click Microsoft Access Help on the
Help menu, type work with objects in visual basic by using the object browser in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbhowto kbinfo KB209912 |
---|
|