Results 1 to 2 of 2
  1. #1
    recon2011 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    28

    Link to network folder from access form

    I have a form called clients that lists all of the projects associated with that client over the past several years. I also have a file on the network called Clients (Access is on the same network) with sub-folders in all of the clients' names. The client names are the same in my Access program as the network file. I need to create a link on the Client form that opens the folder on the network that corresponds to the same client name as the form. I can easily create a hyperlink to the Client folder on the network and from there I can scroll to the client name and open that folder. However, I would like the link to go directly to the client name in the Client folder (on the network). Is there a way to pull the client name from the Client form control that could be used to insert into a network address or something similar?



    Example: the folder on the network is:

    x://data/files/clients

    This takes me to the folder that holds the sub-folders that are labeled by client name. If I want to go to the client folder named "XYZ Company" on the network I would open the client folder and scroll down to XYZ Company and open that folder (or click the shortcut).

    The actual address for XYZ Company on the network would be:

    x://data/files/clients/XYZ Company

    Is there a way to insert the name from the Client control into the network address or another way to do this?

    I apologize if I am over-explaining but I wanted to make sure I was clear in order to avoid clarifications. Thanks in advance.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    The "vProgram" can be file explorer, or iExplorer.
    usu. "C:\Program Files\Internet Explorer\iexplore.exe "

    Code:
    vDir = x:\\data\files\clients\" & cboClient
    call shell(vProgram & " " & vDir,vbMaximizedFocus )

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

Similar Threads

  1. Replies: 1
    Last Post: 05-15-2014, 07:12 AM
  2. Save file as a different user to a network folder
    By rstruck in forum Programming
    Replies: 4
    Last Post: 05-10-2014, 04:53 PM
  3. Hyperlink to open folder on network
    By angie in forum Forms
    Replies: 3
    Last Post: 12-10-2013, 10:22 AM
  4. Replies: 3
    Last Post: 06-04-2013, 09:51 AM
  5. Replies: 13
    Last Post: 03-25-2013, 02:04 PM

Tags for this Thread

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