FIGURE 13.3
A new VB project created from the COM Add-in project template.
To set a reference in a VB 6 project, drop-down the Project menu and select References, as shown
in Figure 13.4.
FIGURE 13.4
Opening the VB 6 References dialog.
For best functioning, a COM add-in designed to run in Access should have a reference
set to the Access and (if needed) DAO object libraries, as shown in Figure 13.5. If you
create your own COM add-in from scratch, you will probably need to set one or both of these refer-
ences; I have set them in the sample VB template project, so they are already checked in projects
made from this template.
NOTENOTE
Part III Adding More Functionality to Office