Results 1 to 4 of 4
  1. #1
    newbie_204 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Nov 2015
    Posts
    10

    Opening a Network Folder Path

    Forgive me, my coding skills are less then par, but I am trying to design a button that will redirect the user to a specific folder on a shared network drive to access the files easier. My road block is how to get the button to identify a sub folder sorted by year based on the first two integers of the project number so that it can be utilized with different project years, I don't even know if it's possible or not. Project files are standard as being 150001 for 2015, 160001 for 2016 etc.



    For example, if the project file is 150030, located in R:\Project Files\2015\150030;

    1 - I would need the string to identify the first two digits of the project years '15' so that it would first direct to the R:\Project Files\2015
    2 - then I would need it to recognize the whole project number to then redirect into the R:\Project Files\2015\150030

    Any help is appreciated, thanks in advance.

    derek.

  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,521
    Try FollowHyperlink with a string built from the value:

    "R:\Project Files\20" & Left(FieldName, 2) & "" & FieldName
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    newbie_204 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Nov 2015
    Posts
    10
    Quote Originally Posted by pbaldy View Post
    Try FollowHyperlink with a string built from the value:

    "R:\Project Files\20" & Left(FieldName, 2) & "" & FieldName

    Perfect, worked like a charm

  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,521
    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Create a folder into a network location
    By charly.csh in forum Access
    Replies: 7
    Last Post: 12-04-2015, 10:02 AM
  2. Zip a folder on the network using vba
    By dj59 in forum Programming
    Replies: 2
    Last Post: 04-24-2015, 11:01 AM
  3. Need help with network path....
    By cplmckenzie in forum Programming
    Replies: 8
    Last Post: 03-27-2013, 08:40 PM
  4. search for folder and return full path
    By eladz949 in forum Programming
    Replies: 3
    Last Post: 12-23-2012, 02:26 PM
  5. Check path in another form and create folder
    By anandram in forum Programming
    Replies: 6
    Last Post: 05-02-2011, 12:23 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