Open password protected database

  • Thread starter Torsten Hannerfeldt
  • Start date
T

Torsten Hannerfeldt

Hello!
How do I open a connection to a password protected access database? I'm not
using user level protection, only the database itself is protected.

Public cn As ADODB.Connection

Public Sub ConnectToDatabase()
Set cn = New ADODB.Connection
cn.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = "
& _
strDBPath & "db1.mdb;"

cn.Open
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top