Results 1 to 2 of 2
  1. #1
    Mahendra1000 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    101

    Hyperlink Location

    I have a field named Location of type Hyperlink. I have copied the respective filepaths in those location column.

    The location filed looks like

    M:\New\1234.pdf
    M:\New\1111.pdf
    M:\New\2222pdf
    M:\New\4444pdf

    If the user clicks on this link then the respective file should be open



    I don't want the front end users to see the entire path. So, I would like to have the names as 1234.pdf in the location column instead of M:\New\1234.pdf. Is it possible to hide the entire path in the backend and show only the name of the file. so that if users click on 1234.pdf then the file needs to open.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Hide your textbox if you don't want the users to see it.

    create a control button that is named "cmdLink"

    In the control button's click event paste

    dim strLink as string

    strLink = me.location.value

    cmd.HyperlinkAddress = strLink

    should work

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

Similar Threads

  1. Current Location Flag
    By mhankins in forum Access
    Replies: 2
    Last Post: 07-03-2013, 02:02 PM
  2. Replies: 4
    Last Post: 01-05-2013, 11:07 AM
  3. Hyperlink with full location
    By desk4tbc in forum Access
    Replies: 0
    Last Post: 06-27-2011, 05:18 PM
  4. Replies: 4
    Last Post: 01-31-2011, 03:19 PM
  5. File Location
    By Mitch87 in forum Programming
    Replies: 1
    Last Post: 02-19-2010, 11:12 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