![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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 |
#6
| |||
| |||
|
|
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? |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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 OLEDB atabasePassword=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 OLEDB atabase 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |