Solved

Open ADO connection with Protected mdb password.

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA to format 3 79
Problem to the message 13 63
Help in WHSCRIPT 9 41
Need VBS version of Excel date conversion 4 51
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now