dbTalk Databases Forums  

Retrieve data from encrypted Access

comp.databases.ms-access comp.databases.ms-access


Discuss Retrieve data from encrypted Access in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lane
 
Posts: n/a

Default Retrieve data from encrypted Access - 12-24-2011 , 03:08 AM






Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find useful
information on the internet if the database is encrypted.

Reply With Quote
  #2  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 12-24-2011 , 05:18 AM






Lane wrote:
Quote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find useful
information on the internet if the database is encrypted.
Go to Connectionstrings.com and find the connection string you need for a
password-protected database. The problem of course, is that the password
needs to be entered in clear text in the VBA module containing the code to
open the connection to the database. You might as well remove the password
protection.

Reply With Quote
  #3  
Old   
Phil
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 12-24-2011 , 09:19 AM



On 24/12/2011 11:18:31, "Bob Barrows" wrote:
Quote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find useful
information on the internet if the database is encrypted.

Go to Connectionstrings.com and find the connection string you need for a
password-protected database. The problem of course, is that the password
needs to be entered in clear text in the VBA module containing the code to
open the connection to the database. You might as well remove the password
protection.


I should have thought if the Database is saved as an MDE or AccDe then the
code can't be read

Phil

Reply With Quote
  #4  
Old   
Lane
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 12-24-2011 , 10:14 AM



On Dec 24, 7:18*pm, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com> wrote:
Quote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find useful
information on the internet if the database is encrypted.

Go to Connectionstrings.com and find the connection string you need for a
password-protected database. The problem of course, is that the password
needs to be entered in clear text in the VBA module containing the code to
open the connection to the database. You might as well remove the password
protection.
Thank you for your reply. Most helpful.

The VBA code in Excel can also be password-protected. This way, even
if the password is entered in clear text, users will not be able to
see it. Why do you suggest that the password protection might as well
be removed?

Reply With Quote
  #5  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 12-24-2011 , 10:29 AM



Phil wrote:
Quote:
On 24/12/2011 11:18:31, "Bob Barrows" wrote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find
useful information on the internet if the database is encrypted.

Go to Connectionstrings.com and find the connection string you need
for a password-protected database. The problem of course, is that
the password needs to be entered in clear text in the VBA module
containing the code to open the connection to the database. You
might as well remove the password protection.



I should have thought if the Database is saved as an MDE or AccDe
then the code can't be read

The code is in an Excel VBA module ...at least that's how I interpreted his
post.

Reply With Quote
  #6  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 12-24-2011 , 10:30 AM



Lane wrote:
Quote:
On Dec 24, 7:18 pm, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com> wrote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find
useful information on the internet if the database is encrypted.

Go to Connectionstrings.com and find the connection string you need
for a password-protected database. The problem of course, is that
the password needs to be entered in clear text in the VBA module
containing the code to open the connection to the database. You
might as well remove the password protection.

Thank you for your reply. Most helpful.

The VBA code in Excel can also be password-protected. This way, even
if the password is entered in clear text, users will not be able to
see it. Why do you suggest that the password protection might as well
be removed?
It's so easily cracksble it's next to useless.

Reply With Quote
  #7  
Old   
Lane
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 01-01-2012 , 08:33 PM



Thanks for the replies. I went to http://www.connectionstrings.com/access-2007
and used the connection string format (Provider=Microsoft.ACE.OLEDB.
12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDBatabase
Password=MyDbPassword to connect to Access 2010 encrypted database.
I have tested the code for non-encrypted database. It works. However,
for encrypted database, it keeps returning "not a valid password". The
password is definitely correct because I have tested it on the
database.

Does anyone hear encounter similar experience? I have been searching
the net for help but I cannot see what I did wrong.
My VBA code is below. Thanks for the help.


'Database information
DBFullName = ThisWorkbook.Path & "\DB-Test.accdb"
'Open the connection
Set Connection = New ADODB.Connection
Cnct = "Provider=Microsoft.ACE.OLEDB.12.0;"
Cnct = Cnct & "Data Source=" & DBFullName & ";"
Cnct = Cnct & "Jet OLEDBatabase Password=123;"
Connection.Open ConnectionString:=Cnct

On Dec 25 2011, 12:30*am, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com>
wrote:
Quote:
Lane wrote:
On Dec 24, 7:18 pm, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com> wrote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I have
successfully done so on an unencrypted database but cannot find
useful information on the internet if the database is encrypted.

Go to Connectionstrings.com and find the connection string you need
for a password-protected database. The problem of course, is that
the password needs to be entered in clear text in the VBA module
containing the code to open the connection to the database. You
might as well remove the password protection.

Thank you for your reply. Most helpful.

The VBA code in Excel can also be password-protected. This way, even
if the password is entered in clear text, users will not be able to
see it. Why do you suggest that the password protection might as well
be removed?

It's so easily cracksble it's next to useless.

Reply With Quote
  #8  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Retrieve data from encrypted Access - 01-03-2012 , 09:50 AM



My google search has revealed people having problems with passwords longer
than 14 characters. Is yours that long? I'm assuming you've censored your
actual password for purposes of posting here.

You are using A2010, not A2007, so you might need a different provider,
especially if you're on a 64-bit machine.


Lane wrote:
Quote:
Thanks for the replies. I went to
http://www.connectionstrings.com/access-2007 and used the connection
string format (Provider=Microsoft.ACE.OLEDB.
12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDBatabase
Password=MyDbPassword to connect to Access 2010 encrypted database.
I have tested the code for non-encrypted database. It works. However,
for encrypted database, it keeps returning "not a valid password". The
password is definitely correct because I have tested it on the
database.

Does anyone hear encounter similar experience? I have been searching
the net for help but I cannot see what I did wrong.
My VBA code is below. Thanks for the help.


'Database information
DBFullName = ThisWorkbook.Path & "\DB-Test.accdb"
'Open the connection
Set Connection = New ADODB.Connection
Cnct = "Provider=Microsoft.ACE.OLEDB.12.0;"
Cnct = Cnct & "Data Source=" & DBFullName & ";"
Cnct = Cnct & "Jet OLEDBatabase Password=123;"
Connection.Open ConnectionString:=Cnct

On Dec 25 2011, 12:30 am, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com
wrote:
Lane wrote:
On Dec 24, 7:18 pm, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com> wrote:
Lane wrote:
Dear Access gurus,

I am not sure if I should address this question to Excel or Access
experts. Sorry if I posted on the wrong group.

I would like to know if Excel can extract data from an encrypted
Access database using VBA. The VBA programmer knows the Access
password. Has anyone tried this before? Thank you very much. I
have successfully done so on an unencrypted database but cannot
find useful information on the internet if the database is
encrypted.

Go to Connectionstrings.com and find the connection string you need
for a password-protected database. The problem of course, is that
the password needs to be entered in clear text in the VBA module
containing the code to open the connection to the database. You
might as well remove the password protection.

Thank you for your reply. Most helpful.

The VBA code in Excel can also be password-protected. This way, even
if the password is entered in clear text, users will not be able to
see it. Why do you suggest that the password protection might as
well be removed?

It's so easily cracksble it's next to useless.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.