Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open password protected database

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Open password protected database

"Torsten Hannerfeldt" <Torsten
wrote ...

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.


Try this connection string resource:

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

Look for the section 'If MDB has a database password'.

Jamie.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PAssword protected file will not open jetta878 Excel Discussion (Misc queries) 9 January 7th 09 06:17 PM
Open workbook that is protected with password ianripping[_67_] Excel Programming 2 June 1st 04 11:48 AM
Open Access database(DAO) with password protected Yanto Excel Programming 1 April 22nd 04 11:40 AM
Open password protected workbook. Tom Excel Programming 3 April 16th 04 03:43 PM
open Access DB that is password protected Shin[_2_] Excel Programming 1 November 20th 03 12:41 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"