Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 210181 - Last Review: June 28, 2004 - Revision: 2.0
ACC2000: Visual Basic Editor Displays Hidden Modules
This article was previously published under Q210181
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
After you hide a module in the Microsoft Access Database window by setting its
Hidden property, you can see the module in the Project Explorer in the Microsoft Visual Basic Editor.
The
Hidden property hides objects from view only in the Access Database window. The Visual Basic Editor provides no mechanism for hiding individual modules in the Visual Basic project of a database.
You can set the
Hidden property for modules to keep them from appearing in the Access Database window. However, the Visual Basic Editor does not respect this property, and shows all modules.
Steps to Reproduce Behavior
- Create a new Microsoft Access database or Microsoft Access project.
- On the Tools menu, click Options.
- Click the View tab and click to clear the Hidden Objects check box.
- Click OK to close the Options dialog box.
- Create a new module and save it as modTest.
- Switch to Access (press ALT+F11).
- Right-click the modTest module and click Properties
- Click to select the Hidden check box, and then click OK.
Note that the modTest module is no longer listed in the Database window. - Switch to the Visual Basic Editor (ALT+F11).
Note that the modTest module is listed in the Project Explorer window. - Right-click the modTest module, and click Hide. This action hides the code; modTest remains visible in the Project Explorer window, but the code is not viewable in the Code window. This is similar to closing the module window.
- In the Project Explorer window, double-click modTest to unhide the code.
APPLIES TO
- Microsoft Access 2000 Standard Edition
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate