O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

B.1. Types of References

You can add references to many types of libraries from your Access projects. Library types include the following: type or object libraries (OLB, TLB, and DLL), ActiveX controls (OCX) and references to other Access databases (ACCDB, ACCDE, MDB, and MDE), Access add-ins (ACCDA and MDA), and Access projects (ADP and ADE).

An object library or type library generally provides functionality for access to other applications or adds functionality to use in your Visual Basic code. For example, Microsoft Office exposes its Component Object Model (COM) through the Microsoft Office Object Library DLLs. These include the Microsoft Access 12.0 Object Library, Microsoft Excel 12.0 Object Library, and Microsoft Word 12.0 Object Library, to name just a few.

ActiveX controls usually include controls that you can add to your user interface. They can display data on forms or provide an access method to data through a form with little or no extra programming. For example, DBI Grid Tools 2.0's ctGrid control displays a grid of data, a two-dimensional table that looks similar to Access's datasheet view. It has properties to indicate which data to display, adjust colors of cells, and add icons and much more, all without programming. The control also enables more functionality through Visual Basic when a reference is made to the Grid Tools DLL.

Access add-ins afford enhanced functionality to Access as a whole. For example, the New Form Wizard provided with Access is an add-in. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required