Results 1 to 4 of 4
  1. #1
    CHEECO is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    156

    Open exe file through access

    I would like to create a button in access database that when pushed it will open an .exe file. Can this be done and if so how would I go about doing it.



    Thank-you and Merry Christmas and Happy New Year.

    Cheeco

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in the event click event for the button, call the shell function and your program...

    Code:
    sub btnRun_click()
    call SHELL ("c:\folder\myprogram.exe",3)
    end sub

  3. #3
    CHEECO is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    156
    Thank-you for this info. I will try it and get back to you.

  4. #4
    CHEECO is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    156
    That worked great. Thank-you

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

Similar Threads

  1. Open CSV file from MS Access
    By forrestgump in forum Macros
    Replies: 4
    Last Post: 09-22-2017, 07:08 AM
  2. Replies: 6
    Last Post: 09-14-2017, 07:31 AM
  3. Replies: 2
    Last Post: 06-25-2014, 10:29 PM
  4. Replies: 4
    Last Post: 09-28-2010, 07:04 PM
  5. Replies: 1
    Last Post: 09-27-2010, 10:10 AM

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