Avoiding Login Prompt When Connecting to Access Database

Posted by Jeff on December 27, 2000 at 19:59:45:

I created a TTable, TDatabase, TDatasource objects.
I created an Alias using the BDE. I also have created an ODBC user DSN in order to connect to an Access 2000 database. I set the LoginPrompt property of the TDatabase to False and the Connected property to True.

But when I run the progrma, it still prompts me for an username and password. (I believe it is when I try to set the TTable active property to True).

How do I avoid this problem???

I have even tried to set the TDatabase Params with a username and password but it doesn't work.

Please Help!

Thanks in advance,

I'm just a beginner Delphi programmer.
I am using Delph 5 Professional (Build 6.18) Update Pack 1 and BDE 5.01.

Related Articles and Replies: