Results 1 to 8 of 8
  1. #1
    sandman is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2021
    Location
    Tasmania
    Posts
    14

    application.followhyperlink adding correct text string

    Received a hyperlink via an email
    eg "Click here” hyperlink text



    With a mouse hover over this link shows :file:///\\servername\folder\document

    i dont have permission to use this server so cant test!


    What do I add behind (Application.FollowHyperlink ) to be sure this will work ?

    do I add the string as shown or simply omit ":file"

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    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
    sandman is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2021
    Location
    Tasmania
    Posts
    14
    Thanks June 7, I have already read that article, but i do not want to add a module for 1 hyperlink. I see that his function prepends "file///" does that means i include it in mine???

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    That's why I referenced the article. Seems to indicate the prefix is acceptable. I tested using the prefix. I had to remove the first colon and then it worked.

    But if you can't access that server, why do you have this link? How do you plan to use it?
    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
    sandman is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2021
    Location
    Tasmania
    Posts
    14
    this particular db is not destined to be used by me.

    If I understand you correctly the finished path should be

    Application.FollowHyperlink "file///\\servername\folder\document", , true


    with the colon removed from behind "file"

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    application.FollowHyperlink "file://\\dlink323\Volume_1\fan.log" works for me?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    Your original example showed 2 colons. I said remove the first colon.
    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.

  8. #8
    sandman is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2021
    Location
    Tasmania
    Posts
    14
    Thanks to you both for the input. I've marked this as solved!

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

Similar Threads

  1. Replies: 8
    Last Post: 06-08-2020, 11:58 AM
  2. Adding vbnewline to a text string
    By Dave_D in forum Access
    Replies: 12
    Last Post: 10-18-2018, 02:21 PM
  3. Replies: 2
    Last Post: 06-25-2015, 01:40 PM
  4. Application.FollowHyperlink throwing Exception
    By Mnelson in forum Programming
    Replies: 4
    Last Post: 03-19-2015, 02:13 PM
  5. Adding textbox.text to a string variable...
    By MatthewGrace in forum Programming
    Replies: 2
    Last Post: 05-20-2014, 11: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