Setting a Reference in the Reference Library

If your Visual Basic code has references to objects in other applications, you need to create or activate a reference to the object libraries of those applications. The reference libraries show all the libraries registered with the operating system. This also gives you an opportunity to see the DAO and ADO listings. If you plan to use DAO, you must set a reference to it because it is not set by default in Access 2002.

The following exercise walks you through setting library references:

1.
While in the Access Database window, choose Insert, Module to open a Module window.
2.
While in the module, choose Tools, References to open the Reference dialog box, as shown in Figure 7.6.
Figure 7.6. You can ...

Get Access 2002 Programming by Example 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.