ACC2000: Converted Add-In Not Displayed in Access Project (199316)
The information in this article applies to:
This article was previously published under Q199316 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
If you use a converted Microsoft Access 97 add-in in Access 2000, the add-in appears on the Add-Ins menu of an Access database (.MDB ), but not in an Access project (.ADP).
CAUSE
In Access 97, each add-in contains a table called USysRegInfo. USysRegInfo contains three entries (rows) that allow the add-in to be installed and that determine its behavior.
Access 2000 uses a fourth entry (row) in the USysRegInfo table to determine whether the add-in should be visible in a Microsoft Access database, in a Microsoft Access project, or in both. If the fourth entry is missing, the add-in will be visible only in an Access database.
RESOLUTION
To modify a converted Access 97 add-in so that it can be used in an Access project, follow these steps:
- On the File menu, click Open Database.
- In the Files of Type box, select Add-Ins.
- Find and open the add-in that you want to modify.
- On the Tools menu, click Options.
- On the View tab of the Options dialog box, select the System Objects option so that you can view system objects.
- Open the USysRegInfo table.
- Add a fourth row to the USysRegInfo table. Fill the collumns with the following information:
- SubKey - The same path that is being used in the first three rows.
- Type - 1
- ValName - Version
- Value - One of the values in the table below.
|
1 | Show this Add-In in Microsoft Access databases (.MDB) only (default) | 2 | Show this Add-In in Access Projects (.ADP) only. | 3 | Show this Add-In in both Microsoft Access Database and Microsoft Access Projects. |
- On the Tools menu, point to Add-Ins, and then click Add-In Manager.
- Find the old version of your add-in in the Available Add-Ins list, select it, and click Uninstall.
- Close the Add-In Manager, and then close Access.
NOTE: When you install an add-in, a copy of the add-in file (.MDA) is copied to a location specified in the USysRegInfo table and is used by Microsoft Access in the future. Before you can install the revised version of your add-in, you must find and rename or delete the earlier version that was copied. You can find all instances of the add-in by clicking Start, pointing to Find, and then clicking Files or Folders. Search for and rename all instances of the add-in file except for the .MDA file you have just modified. - Open any Access database or Access project, and re-install the modified add-in.
REFERENCES
For additional information about creating and testing add-ins, please see the following article in the Microsoft Knowledge Base: 201735 How to Create a USysRegInfo Table for Installing Add-ins
For more information, see Chapter 11, "Add-ins, Wizards, Libraries and
Templates," in The Microsoft Office 2000/Visual Basic Programmer's Guide.
To order the Office Programmer's Guide (ISBN: 1-57231-952-6)
directly, call (800) MSPRESS in the United States or (800) 667-1115 in
Canada. Or visit http://mspress.microsoft.com/.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb KB199316 |
---|
|