How to check MS Access DB is password protected or not before opening
2 answers
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 to share