Microsoft KB Archive/823225

= You receive a &quot;Project Is Unviewable&quot; error message while opening a Visual Basic for Applications project in Microsoft Access =

Article ID: 823225

Article Last Modified on 6/8/2004

-

APPLIES TO


 * Microsoft Office Access 2003
 * Microsoft Access 2000 Standard Edition

-





This article applies only to a Microsoft Access database (.mdb).

Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
When you try to open a Microsoft Visual Basic for Applications (VBA) project in Access 2000, and that project was created by using Office Access 2003, you may receive the following error message:

Project is unviewable

When you open the same VBA project by using Office Access 2003, you receive a similar error message. The specified error may occur even though the project is either digitally signed or is locked by another user.



WORKAROUND
To work around the problem, follow these steps:  Start Office Access 2003. Open the database that has the problem that was described in the &quot;Symptoms&quot; section. Press ALT+F11 to switch to the Microsoft Visual Basic Editor. Add a digital signature to the database. To do this, follow these steps:  On the Tools menu, click Digital Signature. In the Digital Signature dialog box, click Choose.</li> In the Select Certificate dialog box, select one of the available certificates, and then click OK.

Note If the Select Certificate dialog box does not contain any certificates, you can create your own certificate, and then perform the previous steps.</li> In the Digital Signature dialog box, click OK.</li></ol> </li> Remove the digital signature from the VBA project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the Tools menu in the Visual Basic Editor, click Digital Signature.</li> In the Digital Signature dialog box, click Remove.</li> Click OK.</li></ol> </li> Close the Visual Basic Editor, and then close Access.</li> Open the database again in Office Access 2003.</li> Press ALT+F11 to switch to the Visual Basic Editor.</li> Close the Visual Basic Editor, and then close Access.</li></ol>

Note Now if you open the database in Access 2000, you can open the VBA project.

<div class="moreinformation_section">

MORE INFORMATION
This problem occurs when you remove the digital signature from the database that was created in Office Access 2003, and then you open the database in Access 2000.

To avoid the problem, close the database after you remove a digital signature from the database. You must reopen the database in Office Access 2003 before you can open the database in any other version of Access.

Steps to Reproduce the Problem
<ol> Start Office Access 2003.</li> Open the Northwind sample database in Access 2000 file format.</li> Press ALT+F11 to switch to the Visual Basic Editor.</li> Add a digital signature to the database. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the Tools menu, click Digital Signature.</li> In the Digital Signature dialog box, click Choose.</li> <li>In the Select Certificate dialog box, select one of the available certificates, and then click OK.

Note If the Select Certificate dialog box does not contain any certificates, you can create your own certificate, and then perform the previous steps.</li> <li>In the Digital Signature dialog box, click OK.</li></ol> </li> <li>Close the Visual Basic Editor, and then close Access.</li> <li>Start Access 2000.</li> <li>Open the database as you did in step 2.</li> <li>Press ALT+F11 to open the Visual Basic Editor.</li> <li>In Project Explorer, expand Project.

Note You receive the following error message:

Project is unviewable

You expect this behavior because the database is digitally signed.</li> <li>Close the Visual Basic Editor, and then close Access.</li> <li>Open the same database by using Office Access 2003.

Note When you try to open the database, you receive a security warning. Click OK to open the database.</li> <li>Press ALT+F11 to open the Visual Basic Editor.</li> <li>Remove the digital signature from the VBA project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the Tools menu of the Visual Basic Editor, click Digital Signature.</li> <li>In the Digital Signature dialog box, click Remove.</li> <li>Click OK.</li></ol> </li> <li>Open the database by using Access 2000.</li> <li>Press ALT+F11 to open the Visual Basic Editor, and then try to expand the project in Project Explorer.

Note Even though no digital signature is defined for the database, you receive the error in the &quot;Symptoms&quot; section.

If you open the same database in Office Access 2003, and then you try to open the VBA project, you receive a similar error message.</li></ol>

<div class="references_section">