Results 1 to 6 of 6
  1. #1
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149

    how to make EXE from Access


    I use Linked Table to connect to backend SQL database and Access as frontend.
    How to make EXE so that I can deploy to client computers?
    Although I setup ODBC connection on my computer to access the SQL database.
    Everytime I start Access to open tables, forms and/or reports, It always are me to enter SQL database password.
    How to avoid this in EXE?
    Thanks.

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Convert your ACCDB to ACCDE if you want to protect your code.

    You cannot create an EXE file direct from Access.
    Use an installer program such as SamLogic Visual Installer, Inno or SSE to package your file(s) as an EXE for distribution

    It sounds like you are using SQL server authentication.
    Instead use Windows Authentication and you will not need to enter a password each time.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Even with SQL authentication you can avoid the password prompt but you need to delete all SQL server linked tables and when adding them back make sure you click the Save Password check box on the lower left part of the wizard window (unfortunately you will get a prompt for each table). Once you do that you should be able to open it without any issues, and same for your users if they have the same ODBC driver installed.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    When I deploy the Access to end users, I setup the same ODBC for them.
    Then for each linked the SQL server table, I also need to provide password at the first time.
    Do you mean that?
    If yes, is it possible to keep the password in a text file, when starting Access, reading this password from the text?

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    No, I mean you need to delete the link tables you currently have, then use the External\ODBC Database and link them back using a new file DSN. After you select the driver and its options, server, database you will see the list of tables. Select all that you need then in the lower left you'll see a Save Password check-box, make sure it is checked. You will be prompted if you want to save the password for each table, answer Yes for each one. Using the file DSN basically creates a DSN-less connection so you do not need to create machine or user DSNs on each user's computer. As long as each user has the exact same ODBC driver installed on their machine they should be able to open the front-end with no prompts.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  6. #6
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    Understand.
    Thanks Vlad & Colin.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 09-15-2020, 10:17 AM
  2. aahperd ms access db, i can't make it possible!
    By mitrasinnn in forum Access
    Replies: 2
    Last Post: 11-15-2019, 03:38 PM
  3. cant make any changes to access database
    By tagteam in forum Access
    Replies: 2
    Last Post: 01-08-2014, 03:06 PM
  4. Replies: 2
    Last Post: 01-08-2014, 08:52 AM
  5. Replies: 7
    Last Post: 05-30-2011, 08:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums