Link to home
Start Free TrialLog in
Avatar of monsieurx
monsieurx

asked on

ADP login by default



I have a ADP project under MS access 2k as a front end of an SQL Server 2005 Backend. When I start my application, the login dialog box appear but the default username is the one that I used to create the application.

I would like to set the default login to the last username who succesfully log in (or something like that)

I know that I can change the login when I click on  File; Connexion. but in this case the new login become the default login.

Thanx
Avatar of Leigh Purvis
Leigh Purvis
Flag of United Kingdom of Great Britain and Northern Ireland image

Could you not just distribute it without *any* login credentials set - and then the users go in from cold.
Avatar of monsieurx
monsieurx

ASKER

For sur it will be better than my login as default, but how can I set the default login to an empty value

I tried by file; connexion and it's imposible to let the login field empty because it give me an error that say something like "Impossible to connect to database"

thanx
ASKER CERTIFIED SOLUTION
Avatar of Leigh Purvis
Leigh Purvis
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By way of example

Dim strconn As String

strconn = "Provider=SQLOLEDB.1;Data Source=YourServer;User ID=UN;Password=PW;Initial Catalog=YourDatabase;"
CurrentProject.OpenConnection strconn