Solved

Open ADO connection with Protected mdb password.

Posted on 2001-07-23
5
250 Views
Last Modified: 2006-11-17
Can anybody show me the code of open an ADO connection of a protected MS Access with password. The shorter code the better. This code will open the connection irrespective of number of times the password change.
0
Comment
Question by:tongjingjing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 6308327
You need to add the following to the connection string that you already have:

Jet.OLEDB:Database Password=xxxx

Where xxxx is the current password to the database.
0
 

Accepted Solution

by:
BlackShark earned 50 total points
ID: 6308630
Read acticle:
"HOWTO: Access a Secured Jet Database Through the MSDataShape Provider"
http://support.microsoft.com/support/kb/articles/Q247/6/62.ASP
0
 
LVL 3

Expert Comment

by:cmgarnett
ID: 6308890
This page includes lots of connection string samples

http://www.able-consulting.com/ADO_Conn.htm
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7156369
Hi tongjingjing,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept BlackShark's comment(s) as an answer.
    *** I believe this is nore comprehensive.

tongjingjing, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7182233
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question