MS Access connecting to sql server using odbc - how do i auto login to sql server

eLawson 26 Reputation points
2022-12-22T19:51:58.463+00:00

i have an MS Access client with linked tables from SQL Server 2019. All users of the app have the same rights to the tables - adding/editing records.

The first time a user tries to open a form bound to a linked table, SQL Server login pops up displaying the DSN and login ID, and prompts for a password.

The issue is that i don't want this to happen. i don't want the users to even know the login credentials. i just want the application to login automatically to SQL Server and display the data on the form. How can i do this? If i have to use VBA, can someone post the code i need to use?

Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
899 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-12-22T20:36:14.427+00:00

    When you create the new data source to SQL server be sure to use an sql user (don't use integrated windows authentication) By using an sql user and check the box for Save Password then the credentials will be saved within Connect field of MSysObjects table in access.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.