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
Could you not just distribute it without *any* login credentials set - and then the users go in from cold.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By way of example
Dim strconn As String
strconn = "Provider=SQLOLEDB.1;Data Source=YourServer;User ID=UN;Password=PW;Initial Catalog=YourDatabase;"
CurrentProject.OpenConnect ion strconn
Dim strconn As String
strconn = "Provider=SQLOLEDB.1;Data Source=YourServer;User ID=UN;Password=PW;Initial Catalog=YourDatabase;"
CurrentProject.OpenConnect