ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   open Access DB that is password protected (https://www.excelbanter.com/excel-programming/282955-open-access-db-password-protected.html)

Shin[_2_]

open Access DB that is password protected
 
I have the following code written in Excel VBA to open an
Access DB:

Set db = OpenDatabase("I:\test.mdb")

However, the DB is password protected. Is there anyway I
can write code to open the DB in the background? I know
how to do this for Excel but can't figure out how to do
it for Access.

onedaywhen

open Access DB that is password protected
 
ADO connection strings with security? No problem:

http://www.able-consulting.com/MDAC/...orMicrosoftJet

DAO? I've no idea of a similar resource. I guess ADO is more widely
used and therefore more support is available. I'd recommend switching
to ADO if you can.

--

"Shin" wrote in message ...
I have the following code written in Excel VBA to open an
Access DB:

Set db = OpenDatabase("I:\test.mdb")

However, the DB is password protected. Is there anyway I
can write code to open the DB in the background? I know
how to do this for Excel but can't figure out how to do
it for Access.



All times are GMT +1. The time now is 04:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com