Remove an Access 2016 Database Password: VBA and UI Options
Question details
The user wants to remove a database password set through Access.Application, preferably using VBA.

- Product
- Microsoft Access 2016
- Device & OS
- not provided
- Scenario
- A database password was set programmatically, and the user wants to know whether supplying an empty password can unset it.
- Observed behavior
- The goal is to remove the database password through a supported method.
Have the current database password available and ask other users to close the database so you can open it exclusively. Confirm that you have permission to modify the database.
Remove the password in Access using the current password
Use Access 2016 to decrypt the database when you know its current password.
Access does not provide a reliable general-purpose VBA method for removing a database password without the current password. Supplying an empty password is not a supported way to bypass it.
In Access, go to File > Open > Browse. Select the database, click the arrow next to Open, and choose Open Exclusive.
When prompted, enter the existing database password to open the file.
Go to File > Info and select Decrypt Database. Enter the current password if prompted, then confirm the action.
Close the database, then reopen it from File > Open to check that Access no longer asks for the database password.

Use WPS Office for everyday office documents
WPS Office is a free, lightweight alternative with a familiar interface for working with compatible Microsoft Office documents. It can help you move everyday document work to WPS, but it does not remove Access database passwords or replace Access for database management.

Frequently Asked Questions
Can I remove the Access database password by passing an empty string in VBA?
An empty string is not a reliable general-purpose method for removing the password. Open the database exclusively with its current password and use File > Info > Decrypt Database instead.
Why do I need to open the database exclusively?
Access requires exclusive access to decrypt the database. Ask other users to close it, then use File > Open > Browse and select Open Exclusive from the Open button's arrow menu.
What can I do if I don't know the current password?
Password recovery or removal is not supported without the current password. Ask an authorized database owner for it or use an authorized unprotected copy if one is available.
Can WPS Office remove an Access database password?
No. WPS Office does not remove Access database passwords or replace Access for database management. Use Access 2016 and the current password to decrypt the database.




