How to check MS Access DB is password protected or not before opening

Can anyone help me check if MS Access DB is password protected or not before opening the DB.

As for Excel, we have ProtectContents "readonly Boolean property in vb.net

Thank.

0


source to share


2 answers


This thread appears to be related to msaccess.exe opens when trying to free an object



0


source


I cannot function like that. If you don't want to open a data connection and catch the resulting error, you can always check the following in the file.



From what I could research, the password is stored at location 0x42 in the mdb file. Bytes 0x42 and 0x43 appear to be set to 0xFC 0x60 in the office 2003 unencrypted mdb file. You can test these two bytes before opening the file.

0


source







All Articles