Results 1 to 6 of 6
  1. #1
    Froody11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    3

    Hyperlink

    I have a type as you search database, when I double click on a listed result I want to open the hyperlink that goes to a stored pdf.


    Each time I try to use this a window with the link address comes up, I click yes then a runtime error 490 box is displayed

  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,518
    What's the text of the error? What's your code? What is contained in the bound column of the listbox?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Froody11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    3
    Text is run time error 490
    The windows opens asking if you want to open then the above error window pops up.
    The column in the list is set as hyperlink

    Code is application.followhyperlink strath, ,true

    It fails on the above line

    Hope this explains

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,820
    Are you storing hyperlink with Text To Display? I suspect this is what shows and is not a hyperlink therefore code fails. Exactly what are you clicking on to initiate opening hyperlink - a listbox that displays the Text To Display not the actual link path? This is just simple text, the hyperlink path part is not retained in the listbox column. At least, that is how I am able to replicate the issue.

    Review http://www.allenbrowne.com/casu-09.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.

  5. #5
    Froody11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    3
    It works if I put the full link in thank you.
    Is there an easy way to change the links in the table?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,820
    Change them to what?

    Hyperlink type field has its own editor wizard. VBA can update value in hyperlink field as long as it constructs hyperlink in the pattern described in Allen's article. Many experienced developers don't use hyperlink type field and just use text type. Here's another from Allen http://www.allenbrowne.com/func-GoHyperlink.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.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-05-2013, 11:07 AM
  2. help with hyperlink
    By bmd in forum Access
    Replies: 1
    Last Post: 08-24-2011, 12:41 PM
  3. Replies: 4
    Last Post: 01-31-2011, 03:19 PM
  4. Where is the hyperlink....
    By amer in forum Queries
    Replies: 1
    Last Post: 06-09-2010, 12:06 PM
  5. Hyperlink Help
    By smikkelsen in forum Access
    Replies: 9
    Last Post: 03-12-2010, 11:28 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