Results 1 to 6 of 6
  1. #1
    bkirsch is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    39

    Open Excel doc on shared folder from FORM

    I have a button on a form and it currently opens an excel spreadsheet using



    "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" CCC.xls

    in a run app macro...


    is it possible to use a similar macro to open a file on a shared drive (located in this folder "K:\Sponsorship and Sales\2011-2012\Premium Seating\Premium Seating\CCC Seating") ????

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Should be. Did you try? If this project will have multiple users from different work stations, all will need the K:/ drive mapped, otherwise use UNC pathing in the macro code. UNC pathing means reference server by name instead of a fixed drive path.
    http://www.uwplatt.edu/oit/terms/uncpath.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bkirsch is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    39
    it will be different users on different machines...what do yu mean by all will need the k:/ drive mapped?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Each workstation from which this project will run must have a drive location mapped to the K:/ prefix. Check this http://support.microsoft.com/kb/308582. Otherwise, use the UNC path in code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bkirsch is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    39
    every computer is already mapped to the k:/ drive

    in the runapp macro command line I have tried

    \\Ushccharfs01\groupdata\\Sponsorship and Sales\CCC.xls

    (placed the file in that folder)

    \\Ushccharfs01\groupdata\\Sponsorship and Sales\K:\Sponsorship and Sales\2011-2012\Premium Seating\Premium Seating\CCC Seating\CCC.xls


    neither worked...

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The only double \\ should be at the beginning. And the K: drive path would not be included in the UNC pathing. I of course don't know your file structure but the UNC path must include all folders to drill into the target file. Maybe:
    \ \Ushccharfs01\groupdata\Sponsorship and Sales\2011-2012\Premium Seating\CCC Seating\CCC.xls
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Browse and Open Folder Based on Matching Form Field
    By Tomfernandez1 in forum Access
    Replies: 11
    Last Post: 02-26-2013, 01:04 PM
  2. open folder/Make new folder(example)-VBA Code
    By Madmax in forum Code Repository
    Replies: 3
    Last Post: 03-13-2012, 09:17 AM
  3. Form Loading Slow From the Shared Folder
    By injanib in forum Forms
    Replies: 2
    Last Post: 06-25-2011, 03:45 AM
  4. Enter a folder name and open that folder
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 09-05-2010, 04:39 PM
  5. Replies: 6
    Last Post: 04-23-2010, 06:43 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