views:

133

answers:

2

I am trying to open an ADOConnection component. The database is in MDB format. I use JET to access it. Whenever I use AdoConnection.Open in my code the window pops up and asks for userid and pass. I enter "Admin" for userid and leave password empty, and it works, but I don't want this window to pop up. I tried using AdoConnection.Open('Admin',''); But the window still pops up. Any suggestions?

+11  A: 

Set the LoginPrompt on the connection object to FALSE

Sparky
+4  A: 

Try:
AdoConnection.LoginPrompt := False

bugtussle