Connecting to a password protected MS Access Database
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I want to open a password protected database in vc 6 program but it do not works following is the code (if db has no password then every thing works fine) m_pConnDB->Open (_bstr_t ("Provider=Microsoft.Jet.OLEDB.4.0; \ Data Source = Database1.accdb"), \ _bstr_t (""), \ _bstr_t (""), \ adModeUnknown); I have also tried "Jet OLEDB:Database Password = mypassword" but it dont work I have also tried same code on MDB file instead of accdb files but still same error. Thanks in advance :rose: