Advertisement

09.08.2007 at 01:00PM PDT, ID: 22815443
[x]
Attachment Details

Open mdb with ado

Asked by nodramas in Delphi Database, Delphi Programming

Tags: mdb, open, password, ado

I'm opening mdb files as:

 AdoConnection1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;'+'User ID=Admin;Data Source='+DBPath+';Mode=Share Deny None;'+'Persist Security Info=False;';
 AdoConnection1.GetTableNames(List.Items,False);
 AdoConnection1.Open();

It works fine for a mdb without password. However when trying to open a password protected mdb I handle an error that sais the wrong password. Now, Is there a way when I recieve this error to request from user the wright password? Shell I do it with try and except?

Thanks a lot.
cheersStart Free Trial
[+][-]09.08.2007 at 04:55PM PDT, ID: 19854844

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2007 at 03:48AM PDT, ID: 19856337

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2007 at 05:46AM PDT, ID: 19856612

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2007 at 07:50AM PDT, ID: 19856927

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2007 at 12:38PM PDT, ID: 19857755

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Database, Delphi Programming
Tags: mdb, open, password, ado
Sign Up Now!
Solution Provided By: ziolko
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.10.2007 at 09:14AM PDT, ID: 19861993

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 11:11PM PDT, ID: 19866394

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2007 at 10:39AM PDT, ID: 19870554

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628