How to hide Logon Lorm when open adp database

S

Saroeurn Long

I create Access Data Project Database. I set properties in Data Link to
connect to SQL Server, but I don't want to save password. When I open
database, the Logon form show automically. How can I hide this form. Because
I write code connect to SQL Server.

Thanks,
 
A

aaron.kempf

northwindcs.adp has examples of this sort of thing you should look in
there; it has some great code already


-Aaron
 
S

Sylvain Lafontaine

One possibility would be to close the connection and then open it with a
blank connection string:

application.CurrentProject.CloseConnection
application.CurrentProject.OpenConnection ""

Don't know what will happen if you try to do this with an ADE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top