Steps to Reproduce Behavior
- Start Microsoft Access 2000.
- Create a new, blank database, and name it MyAddIn.mdb.
- Create a new, blank form in Design view.
- Add a command button to the form.
- Set the OnClick property of the command button to the following event procedure:
Private Sub Command1_Click()
MsgBox "My AddIn"
End Sub
- Save the form as frmMyAddIn, and then close it.
- Insert a new, blank module into the database, and type the following code in the module:
Option Compare Database
Option Explicit
Function StartMyAddIn()
DoCmd.OpenForm "frmMyAddIn"
End Function
- Save the module as mdlMyAddIn.
- On the Tools menu, click Options.
- Click the View tab.
- Click to select the Hidden Objects and System Objects check boxes, and then click OK.
- On the File menu, point to Get External Data, and then click Import.
- In the Files of Type box, select Microsoft Access.
- Browse to the 1033 folder of the Microsoft Office installation folder on your computer. By default, this is Program Files\Microsoft Office\Office\1033.
- Click the Acwzmain.mde file, and then click Import.
- In the Import Objects dialog box, click the Tables tab.
- Click the USysRegInfo table, and then click OK.
- Open the USysRegInfo table in Datasheet view, and delete any records that may be present.
- Add the following records to the table:
Subkey | Type | ValName | Value |
---|
HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\&MyAddIn | 0 | | |
HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\&MyAddIn | 1 | Library | |ACCDIR\MyAddin.MDB |
HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\&MyAddIn | 1 | Expression | =StartMyAddIn() |
- Close the database.
- Open the sample database Northwind.mdb.
- On the Tools menu, point to Add-Ins, and then click Add-in Manager.
- Click Add New.
- In the Files of Type box, click All Files(*.*).
- Locate the MyAddIn.mdb file that you created in step 2, and then click Open. Note that MyAddIn is listed as an installed menu add-in.
- Click Close to close the Add-in Manager.
- On the Tools menu, point to Add-Ins, and then click MyAddIn.
Note that the add-in form that you created in MyAddIn.mdb opens.
- Close the form.
- On the Tools menu, point to Add-ins, and then click Add-in Manager.
Note that the menu add-in is no longer listed as being installed.
How to Uninstall Add-ins Not Listed in the Add-in Manager
To uninstall a menu add-in that is not listed in the Add-in Manager, follow these steps.
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
- Quit Microsoft Access.
- Start Registry Editor.
- Browse to the following key in the Windows registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Access\Menu Add-Ins
- Under the Menu Add-Ins key, locate the key that represents your menu add-in, and select it.
- On the Edit menu, click Delete. When prompted to confirm the deletion of the key, click Yes.
- Quit Registry Editor.
- Start Microsoft Access.
- Open the sample database Northwind.mdb.
- On the Tools menu, point to Add-ins.
Note that the custom menu add-in is no longer listed on the
Add-ins submenu.