How to Convert Access MDB to ACCDB with User Permissions
Question details
The user needs a method to retain or recreate department-specific user permissions when converting an older Microsoft Access MDB database to the newer ACCDB format.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Upgrading a legacy MDB file to the ACCDB format while ensuring that specific tables, forms, and sections remain restricted to authorized department personnel.
- Observed behavior
- The ACCDB format drops support for the legacy User-Level Security (MDW workgroup files) present in MDB databases, breaking existing authorization mechanisms.
Before converting your database, ensure you have completely backed up the original MDB file and its associated MDW workgroup file, as the built-in user-level security features will be permanently stripped during the ACCDB conversion.
Create a Custom Login Form with VBA Authentication
Since ACCDB does not support traditional User-Level Security, you must build an application-level security system using custom user tables and VBA.
Because the ACCDB format relies on a newer database engine that deprecated User-Level Security, you cannot directly migrate MDW file permissions. Instead, you must authenticate users through a custom startup form and use VBA to restrict navigation based on their assigned department roles.
Open your MDB file in Microsoft Access, navigate to File > Save As, choose 'Access Database (*.accdb)', and save the new file.
Create a new local table (e.g., tblUsers) containing fields for UserID, Username, PasswordHash, and DepartmentRole. Populate it with your authorized users.
Create an unbound form (e.g., frmLogin) with text boxes for Username and Password, and a 'Login' command button.
In the OnClick event of the Login button, write VBA code to use DLookup to verify if the entered Username and Password match a record in tblUsers.
If authentication succeeds, store the user's DepartmentRole in a TempVar or global variable. Use this variable in the OnOpen events of your department-specific forms to either allow access or display a 'Permission Denied' message.
Go to File > Options > Current Database, and set your new login form as the 'Display Form' so it opens automatically when the database launches.

Manage Your Daily Data and Documents with WPS Office
While complex relational databases requiring VBA security are best managed in Microsoft Access, you can handle all your everyday data lists, spreadsheets, and document processing needs effortlessly with WPS Office. It is a free, lightweight suite that serves as a powerful alternative to Microsoft Office.
- 1. Download and Install: Visit the official WPS Office website to download the free, lightweight installer.
- 2. Import Your Data: Open WPS Spreadsheet to import exported CSV or Excel files from your database for quick analysis.
- 3. Protect Your Data: Use the 'Review' tab to easily protect sheets and workbooks with passwords, restricting unauthorized access to your tabular data.

Frequently Asked Questions
Why did Microsoft remove User-Level Security in the ACCDB format?
Microsoft removed the legacy User-Level Security (MDW) in the ACCDB format because the architecture was outdated and easily compromised by modern password-cracking tools. They recommend using SQL Server, Windows SharePoint Services, or building custom VBA security for access control.
Can I still use my MDB file with newer versions of Access?
Yes, modern versions of Microsoft Access can still open, read, and run older MDB files. However, you will not be able to utilize newer features like multi-valued fields, attachment data types, or newer encryption methods until you convert the file to ACCDB.
Is there a way to password-protect an entire ACCDB file easily?
Yes, you can encrypt the entire database with a single password. Open the ACCDB file in Exclusive Mode (File > Open > Open Exclusive), then navigate to File > Info and click 'Encrypt with Password'. Note that this restricts the whole file but does not provide individual or department-level permissions.




