G
Guest
I'm trying to open a password encrypted file using vb. I've always used DAO
and as far as I can understand it, you need to use ADO for this feature. I
can open the Database OK directly from Access after entering the password
(1234)
From the Access help I think this should code work:
Dim Cnnct1 As ADODB.Connection
Dim sUser As String
sUser = CurrentUser() 'The cuurent user is Admin
Set Cnnct1 = New ADODB.Connection
Cnnct1.Provider = "Microsoft.Jet.OLEDB.4.0"
Cnnct1.Open "c:\Test1.accdb", "Admin", "1234"
But I get an error that the workgroup information file is missing - which
seems a bit odd as I thought that the new encryption scheme made all that
obsolete.
Can someone please give me a hint?
Cheers
IanO
and as far as I can understand it, you need to use ADO for this feature. I
can open the Database OK directly from Access after entering the password
(1234)
From the Access help I think this should code work:
Dim Cnnct1 As ADODB.Connection
Dim sUser As String
sUser = CurrentUser() 'The cuurent user is Admin
Set Cnnct1 = New ADODB.Connection
Cnnct1.Provider = "Microsoft.Jet.OLEDB.4.0"
Cnnct1.Open "c:\Test1.accdb", "Admin", "1234"
But I get an error that the workgroup information file is missing - which
seems a bit odd as I thought that the new encryption scheme made all that
obsolete.
Can someone please give me a hint?
Cheers
IanO