Can't get data into Excel from encrypted Access database, even if I know the password

jasmith4

Active Member
Joined
May 16, 2008
Messages
337
Yes, I put this in the Access forum, but it was recommended I put this in the Excel forum too.

First the real-world scenario: I have a system that involves many Access databases feeding data to an Excel front end, and all those databases need to be secure: if some user zips and Emails any database outside, the database should be inaccessible. My problem is, when I encrypt any database, Excel can't get the data, even if I know the password and splice it into the connection string of the query getting the data.


I use Office 2010 all the way, and here's how to create the problem most simply:

• Make a new Access database.
• Make a new table and populate it, save it as Table1, and close the database.
• Make a new Excel workbook.
• Do Data / From Access, navigate to the new database, choose the table, etc., and get a new table reflecting the data.
• Close the workbook.
• Open the database, open Table1, change the data, and close the database.
• Open the workbook, refresh the table, and you will see the changes.
• Close the workbook.
• Open the database exclusively, encrypt the database (File / Info) with a password, and close it.
• Open the workbook, and refresh the table.

It repeatedly asks for the password, even if you supply the right password!

I've tried everything. I've tried making a connection first with Data / Connections / Add and then Data / Existing Connections. I've tried Data / Other / Data Connection Wizard and Data / Other / MS Query with every Access provider there is, including first making an ODBC entry with every Access driver there is for the database which includes the password. I've checked the Save Password checkbox and spliced the password into every connection string. I've saved every DSN, ODC and DQY file, I've inserted the password into all of them, and I've read them all in.

I've also tried making a linker database with a link to the source database that includes the password, and that works -- that is, I open the linker database and double-click the link, and I see the data without a password prompt. But when I try to get the data into Excel from the linker database, in all the ways above, it still repeatedly asks for a password, even if I give it the right one -- which I shouldn't have to do, because the linker already has it.

I even sent all this to a well-known Excel expert, he sent it back saying "got it working", but it doesn't work for me. He used MS Query and picked the MS Access Database ODBC entry, which of course is one of the many things I tried.

There is simply no way to get that data into Excel once I encrypt the source database. And I absolutely do know the password, because I can open the source and linker databases any time.


What in hell, Microsoft? Have you never heard of such a scenario??
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
SOLVED: File / Options / Client Settings / Use Legacy Encryption.

Hey Microsoft -- got a BUG here!
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top