sodcalculator

10 Tech How-To

Recover Lost MS Access Password: Step-by-Step

Guide 10-35475 · Updated · Step by step

If you’ve forgotten the password for a Microsoft Access database, don’t panic. This guide walks you through practical methods to regain access, from simple tricks to more advanced techniques. You’ll need a computer with Access installed and, in some cases, a hex editor or a third-party tool—but many fixes require nothing more than a bit of patience.

What You’ll Need

  • A computer with Microsoft Access installed (any recent version).
  • A backup copy of the database file (always work on a copy).
  • For advanced methods: a hex editor (e.g., HxD, which is free) or a reputable third-party password recovery tool.
  • Basic knowledge of file extensions and how to show hidden file extensions in Windows.

Step-by-Step

  1. Try common passwords first. Before diving into technical fixes, test simple passwords you often use: your name, “password”, “1234”, or the database name. Many people set simple passwords and forget them quickly.
  2. Check if the password is actually on the database. Open Access, go to File > Open, select the database, and when prompted for a password, try leaving it blank and pressing Enter. If it opens, there was no password—you might have been prompted by a linked table or a startup form.
  3. Create a backup copy. Always work on a copy. Copy the .accdb or .mdb file to a new folder and rename it (e.g., backup.accdb). This ensures you can revert if something goes wrong.
  4. Use the ‘Shift’ bypass for startup forms. If the password prompt appears because of a startup form (not the database password itself), hold the Shift key while opening the database. This bypasses startup macros and forms, allowing you to access the database directly.
  5. Try the ‘Password’ field in the database properties. Right-click the database file in Windows Explorer, select Properties, and go to the Details tab. Sometimes people store passwords in the comments or title fields. It’s a long shot but worth checking.
  6. Edit the database password using a hex editor (for .mdb files only). This method works for older .mdb files, not .accdb. Open the backup copy in a hex editor (like HxD). Search for the string “Password” (without quotes) in the file. You’ll see a series of bytes after it. The password is stored as an obfuscated string. You can often clear the password by replacing the byte sequence with zeros. However, this is tricky and requires knowing the exact offset. A simpler approach is to use a dedicated tool (see next step).
  7. Use a third-party password recovery tool. There are many reputable tools (e.g., Access Password Recovery, Passware Kit) that can remove or recover passwords. Download one from a trusted source, install it, and follow its instructions. Most tools offer a free trial that shows the password but requires payment to remove it. Some free tools can remove the password entirely for older .mdb files.
  8. Try the ‘Open Exclusive’ method. In Access, go to File > Open, select the database, and click the dropdown arrow next to the Open button. Choose “Open Exclusive”. Sometimes, if the database is not shared, Access may allow you to set a new password if you have the database open exclusively and go to File > Info > Encrypt with Password. But this only works if you already know the old password.
  9. Check for a backup of the database. Look in your Recycle Bin, previous versions of files (right-click > Properties > Previous Versions), or cloud storage version history (e.g., OneDrive, Google Drive). You might find an older copy that doesn’t have a password.
  10. Contact the database administrator. If this is a corporate database, the IT department or the person who created it may have the password. It’s always worth asking.

Common Mistakes

  • Working on the original file. Always make a copy before attempting any recovery. A wrong edit can corrupt the database permanently.
  • Using unreliable tools. Many free tools are malware or don’t work. Stick to well-known, reputable software.
  • Confusing database password with user-level security. Access 2003 and earlier had user-level security with workgroup files. That’s different from a simple database password. This guide focuses on the simple password.
  • Forgetting the Shift bypass. If you have a startup form that asks for a password, holding Shift is the simplest fix, but many people don’t know it.
  • Assuming .accdb and .mdb are the same. The hex-editor trick works only for .mdb files. For .accdb, you need a third-party tool.

Tips

  • Always keep a backup of your databases, ideally in a different location (external drive, cloud).
  • Use a password manager to store database passwords so you don’t forget them.
  • If you’re the administrator, consider using a strong password but document it in a secure place.
  • For .accdb files, try the “Open Exclusive” method first; it’s the most reliable.
  • When using a hex editor, work on a copy and note the exact offset before making changes.

Troubleshooting

  • The database won’t open after editing. If you used a hex editor and the database is now corrupt, restore your backup copy and try a different method, like a third-party tool.
  • The password recovery tool doesn’t find the password. Some tools only work with certain versions of Access. Try a different tool or check if the database is encrypted with a newer algorithm.
  • You get an error about the database being in use. Make sure no other program (including Access itself) has the database open. Close all Access windows and try again.
  • The Shift bypass doesn’t work. This happens if the database has a password set at the database level, not just a startup form. You’ll need to use a password recovery tool.
  • You see a message about the database being corrupted after recovery. This can happen if the tool made a mistake. Try a different tool or restore from backup.

Frequently Asked Questions

Q: Can I recover a password for an .accdb file?
A: Yes, but the hex-editor trick doesn’t work for .accdb. You’ll need a third-party tool that supports the newer format. Many commercial tools do.

Q: Is it legal to recover a password?
A: It’s legal if you own the database or have permission from the owner. Using these methods to access someone else’s database without permission is illegal.

Q: Will these methods work on Access 2016 or 365?
A: The Shift bypass and Open Exclusive methods work on all versions. The hex-editor trick is for .mdb files, which are from Access 2003 and earlier. For .accdb, you’ll need a tool.

Q: What if I don’t have Access installed?
A: You can download the free Access Runtime from Microsoft to open databases, but password recovery tools work independently of Access.

Q: Can I remove the password without knowing it?
A: Yes, some third-party tools can remove the password entirely, but they may require a paid license. Free trials often show the password but don’t allow removal.

Q: What’s the difference between a database password and a user-level password?
A: A database password is a single password that opens the entire database. User-level security (older Access) has individual user accounts and permissions. This guide covers the database password.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →