Suppose that your Microsoft Access database contains two references: one
reference to a library database called MyDatabase, which contains a class
called RecordSet, and another reference to Microsoft DAO 3.6 Object
Library, which also contains a class called RecordSet. To dimension a variable of type RecordSet from the MyDatabase reference, you must use the following syntax:
Dim rs as MyDatabase.RecordSet
If you do not explicitly declare the reference name when you dimension the
variable, whichever reference appears first in the
References dialog
box is automatically assumed. If the wrong reference is assumed, you may
encounter error messages when you try to use the properties and methods of
the declared object.
You can use the Microsoft Access Object Browser to determine the reference
name. To use the Object Browser, open any module in Design view, and then
click
Object Browser on the
View menu (or press the F2 key). The name that appears in the
Project/Library box of the Object Browser is the name of that reference.