Solved

Open ADO connection with Protected mdb password.

Posted on 2001-07-23
5
249 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

790 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