Convert Library Databases and Add-Ins

Convert Library Databases and Add-Ins

See Also

If you use add-ins or library databases created in previous versions of Microsoft Access, you must convert them to Microsoft Access 2000 (version 9.0) format before you can use them with applications created in Access 2000.

You may also need to make some changes to the objects, macros, and procedures in your library databases and add-ins in order to make sure that they function properly.

For more information about library databases, see Chapter 10, "The Windows API and Other Dynamic-Link Libraries," in the Microsoft Office 2000/Visual Basic Programmer's Guide or see Set References to Type Libraries. For information about how to obtain the Microsoft Office 2000/Visual Basic Programmer's Guide, click .

Referencing and Loading Library Databases

Before using a library in Microsoft Access 2000, you must establish a reference to the library database from each of your applications that uses it. You establish such a reference by clicking References on the Tools menu while in module Design view. A referenced database must be in Microsoft Access 2000 format.

A library database should contain only Visual Basic code, which you can call from any application that maintains a reference to that library. In versions 1.x and 2.0 of Microsoft Access, you load a library database at startup by creating an entry in the Libraries section of your .ini file. Most of the information that's stored in an .ini file in versions 1.x and 2.0 is stored in the Windows registry in later versions. However, there's no need to create a Windows registry key in order to use a library database.

Circular References Between Libraries

In versions 1.x and 2.0 of Microsoft Access, you can make circular library references. However, these aren't allowed in later versions of Microsoft Access. In other words, once you've created a reference from Library A to Library B, you cannot create a reference from Library B to Library A.

Custom Add-ins Menu Behavior

In versions 1.x and 2.0 of Microsoft Access, add-ins automatically appear on the Add-ins submenu of the File menu. In later versions of Microsoft Access, the Add-ins submenu is on the Tools menu. In Microsoft Access 2000 you can also reference add-ins from any toolbar or menu.