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?

Kromster
  • 7,181
  • 7
  • 63
  • 111
Tofig Hasanov
  • 3,303
  • 10
  • 51
  • 81

2 Answers2

17

Set the LoginPrompt on the connection object to FALSE

Sparky
  • 14,967
  • 2
  • 31
  • 45
7

Try:
AdoConnection.LoginPrompt := False

bugtussle
  • 1,416
  • 11
  • 15