MS Access databases and login prompts

Is there a way to keep that annoying login dialog box not popping up whenever I login to an MS Access database with Delphi? And is it possible to give an Access database location to a TTable as a string instead of a BDE alias?
KeijoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RBertoraConnect With a Mentor Commented:
Get rid of login dialog:
set TDatabse.LoginPrompt to false, if this causes a access denied error msg then setup your onlogin event to:
  LoginParams.Values['USERNAME'] := 'Admin';
  LoginParams.Values['PASSWORD'] := '';  


TTable as a string:
No you have to use the bde alias.

Rob ;-)
0
 
KeijoAuthor Commented:
Thanks Rob!

Is it possible to create BDE aliases on the fly in Delphi?
0
 
RBertoraCommented:
yes it is look at the TSession object to do that.
Rob ;-)
0
 
KeijoAuthor Commented:
Thanks Rob, solved a lot of problems!
0
 
RBertoraCommented:
glad to hear it
and good luck!
Rob ;-)
0
All Courses

From novice to tech pro — start learning today.