Microsoft Office 2000/Visual Basic Programmer's Guide |
The simplest Access add-in is a menu add-in. A menu add-in calls a procedure in another database, perhaps a database that's serving as a code library. For example, a simple menu add-in might call a procedure that generates a report containing information about the various objects in the current database, such as the date they were created and their descriptions. Menu add-ins appear when you point to Add-ins on the Tools menu.
To create a menu add-in
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Access\Addins\Menu Add-ins
Expression: "=AnalyzeDatabaseObjects()"
Library: "C:\Windows\Application Data\Microsoft\AddIns\CodeLib.mda"
After you've added these keys, the new add-in command will appear on the Add-ins submenu of the Tools menu the next time you open Access.
Note If you need to distribute your Access menu add-in to users, create an installable add-in as described in the next section, "Creating Installable Add-ins for Access," so that the add-in is properly registered on users' machines.