Microsoft KB Archive/205085

= ACC2000: Can't Import Modules from Protected VBA Project =

Article ID: 205085

Article Last Modified on 1/26/2005

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q205085



Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).



SUMMARY
If you export a module to or import a module from another Microsoft Access database or project, or if you drag a module from one instance of the Visual Basic Editor to another instance of the Editor, you may receive the following error message:

This VBA project has been protected with a password. You must supply the password in the Visual Basic Environment before you can perform this operation.



MORE INFORMATION
There is no way to supply the password to the protected project.

In order to complete the operation successfully, open the database or project that contains the protected Visual Basic for Applications project and export the module to the target database or project. If both the target and source databases are under Visual Basic for Applications password protection, remove the password from the Visual Basic for Applications project that you are importing from or exporting to.

