Link to home
Start Free TrialLog in
Avatar of burtonrhodes
burtonrhodes

asked on

How to create the initial connection from Access to SQL Server

I have an application written in Access 2007 that has SQL Server back-end (linked tables via ODBC).  All works great except the first time I open the application, a SQL Server Login screen appears (in access) after the first query is run asking for a username/password to the SQL Server.  Subsequently, I never see this login screen until I restart my computer and run the application again.  

I don't want the user to have to enter this information as it's not appropriate for my application.  The user's username/password is stored in a DB table, not on the SQL Server as a login.  I would like to automatically create the application connection when my "Startup Form" appears.

Related question: How are connections managed in ACCESS? Does Access maintain any sort of connection pool?
ASKER CERTIFIED SOLUTION
Avatar of frankytee
frankytee
Flag of Australia 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
Avatar of burtonrhodes
burtonrhodes

ASKER

It worked.  Thanks.