ACC2000: Changes That You Make to Referenced Projects Are Not Saved in Visual Basic Editor (202106)
The information in this article applies to:
This article was previously published under Q202106 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
In Microsoft Visual Basic for Applications, you can reference another VBA project (MDB, MDA, or ADP) in the References dialog box. By using the Project Explorer in the Visual Basic Editor, you can also see the code in referenced projects, or you can see the project's properties by clicking Properties on the Tools menu. You can see, and you can even edit the code and properties in a referenced project. However, if you make changes, your changes are not saved. You can save changes only to the project that you have currently open in Microsoft Access.
CAUSE
Access does not save the VBA project in a referenced or a library database. Therefore, any changes that you make to the referenced project--whether at the project level or in a module--are not saved. Access never prompts you to save the changes. Access also never warns you that your changes will not saved.
RESOLUTION
To make changes, open the database. This makes the database the current project. Then, make your changes to the database.
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbnofix kbprb KB202106 |
---|
|