I'm opening mdb files as:
AdoConnection1.ConnectionS
tring := 'Provider=Microsoft.Jet.OL
EDB.4.0;'+
'User ID=Admin;Data Source='+DBPath+';Mode=Sha
re Deny None;'+'Persist Security Info=False;';
AdoConnection1.GetTableNam
es(List.It
ems,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.
cheers
Start Free Trial