Results 1 to 5 of 5
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Using the Shell command

    After giving up on the Follow Hyperlink method (too many warnings) to open on database from another I employed Shell successfully.



    Code:
    Shell "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE C:\FIMS_NEW\Databases\FIMS_Reports.accde", vbMaximizedFocus
    Will I have to update this path on each upgrade of Access?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If memory serves, you can just specify the exe name without the path. Try that and see if it works:

    Shell "MSACCESS.EXE C:\FIMS_NEW\Databases\FIMS_Reports.accde", vbMaximizedFocus
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Thanks, will do after lunch.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem Paul, we Paul's have to stick together.

    I tested by the way, and it worked.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Thanks Paul

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

Similar Threads

  1. Replies: 2
    Last Post: 05-27-2014, 05:54 PM
  2. Replies: 8
    Last Post: 02-05-2013, 02:36 PM
  3. Replies: 7
    Last Post: 06-18-2012, 11:31 AM
  4. Running a shell command from a stored procedure.
    By sstrauss87 in forum SQL Server
    Replies: 3
    Last Post: 03-01-2012, 04:39 PM
  5. Using Shell in VBA
    By ghutche in forum Programming
    Replies: 7
    Last Post: 03-17-2011, 10:13 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