VBA & Macro Problems

Fix Microsoft Access Form Import Errors Caused by VBA Passwords

Steven ParkerSteven Parker Oct 28, 2026 869 views

Question details

Users are unable to import forms or databases from a backup due to password protection.

Fix Microsoft Access Form Import Errors Caused by VBA Passwords
Product
Microsoft Access
Device & OS
not provided
Scenario
Importing a form or a complete database from a backup file into a new or existing Access database.
Observed behavior
The import process fails because the VBA project is still password-protected, even after the main database password has been removed.
Before you start

Ensure you have the correct authorization and the actual password for the VBA project, as it is completely separate from the main Access database password.

Solution 1Recommended

Remove the VBA Project Password and Retry Import

Clear the VBA project password from the source database to allow unrestricted importing of forms and modules.

A common misconception is that removing the Access database password also unlocks the Visual Basic for Applications (VBA) code. Microsoft Access handles these two security layers independently. To fix the import error, you must explicitly disable the VBA project protection.

1
Open the source database

Launch Microsoft Access and open the original database file that contains the form or backup you are trying to import.

2
Access the VBA Editor

Press Alt + F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.

3
Unlock the VBA Project

In the Project Explorer pane on the left, click on the VBA project. You will be prompted to enter the VBA password. Type the password and click OK.

4
Modify Project Properties

Go to the top menu and select Tools, then click on [Your Project Name] Properties. Navigate to the Protection tab.

5
Remove the password

Uncheck the 'Lock project for viewing' box. Delete the asterisks in both the 'Password' and 'Confirm password' fields, then click OK.

6
Save and restart

Save your database, close Microsoft Access completely, and then restart the application to retry importing your form.

Remove the VBA Project Password and Retry Import
Password Distinction: Removing the main Access database encryption password does not automatically unlock the VBA project. They are managed independently to protect backend code.
Free Microsoft Office alternative

Discover WPS Office for Your Daily Productivity Needs

While Microsoft Access handles complex relational database management, WPS Office provides a robust, lightweight suite for your everyday document, spreadsheet, and presentation tasks. It offers seamless compatibility with Microsoft Office formats, saving you money without sacrificing functionality.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Includes robust Spreadsheet software with extensive data analysis and VBA support for macros.Free, lightweight, and incredibly fast to install on any device.Familiar user interface makes migrating from Microsoft Office completely seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Access say my database is protected even after I removed the database password?

Microsoft Access applies separate security measures for the database file itself and its internal VBA code. You must remove the VBA project password separately in the VBA Editor via Tools > Properties.

Can I import an Access form without its underlying VBA code to bypass the password?

Generally, Access attempts to import the form and its associated class modules together. If the VBA project is locked, the entire import process for that form will be blocked to protect the intellectual property of the code.

How do I access the VBA Editor in Microsoft Access?

You can quickly open the VBA Editor at any time by pressing the Alt + F11 keys on your keyboard while your Access database is open.