In an MDE or ADE database in Microsoft Access 2000, all editable code is removed, and the Visual Basic project is saved in a compiled state. Consequently, you cannot open any existing modules and you cannot create new ones. If you have also cleared the
Allow full menus and
Use special keys properties in the
Startup dialog box, the menu item for the Visual Basic Editor is not available and the ALT+F11 key combination does not work.
The following steps demonstrate how set up this scenario:
- Open a new Access database.
- On the Tools menu, click Startup.
- Click to clear the Allow Full Menus check box.
- Click the Advanced button.
- Click to clear the Use Access Special Keys check box.
- On the Tools menu, point to Database Utilities, and then click Make MDE File.
- In the Save MDE As dialog box, change the file name to TestMDE, and then click Save.
- Close the original database, and then open the TestMDE database.
Note that now you cannot open the Visual Basic Editor by using the menu, by using the
New button, or by pressing ALT+F11.
The following steps demonstrate how to open the Visual Basic Editor in this scenario:
- If Access is open, close it.
- Open Access without opening a database.
- Press ALT+F11 to switch to the Visual Basic Editor.
- Press ALT+F11 again to switch to Access
- On the File menu, click Open
- Open the MDE or ADE database.
- Press ALT+TAB until Microsoft Visual Basic - database name is selected, to return to the Visual Basic Editor.
NOTE: If you plan to package the MDE or ADE database for deployment, you can run the Package and Deployment Wizard from the
Add-ins menu. If the Package and Deployment Wizard is not listed on the
Add-ins menu, see the following article in the Microsoft Knowledge Base:
236143 MOD2000: How to Start the Package and Deployment Wizard