Results 1 to 4 of 4
  1. #1
    RunTime91 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    281

    How Can I Convert a Field of a Linked Table Back to Hyperlink

    The web seems to dance all over this issue without providing a solution...

    Here is my issue ~

    I am converting my local Access table to SQL 2014 - I know once I do I will lose the Hyperlinks as SQL will (or I will) convert them to VarChar.

    My dillemma is how to restore the now text value back to an active hyperlink value.

    The local table with the active hyperlink field is the data source for a listbox which is bound to the hyperlink field



    This allows the users to find the record they are looking for in the listbox then simply click on the record to access more information from the web.

    My current effort involves populating the ListBox with a Query of the Linked Table and within the query try to re-format the Hyperlink field (which is now SQL text) back into active Hyperlinks

    Which, if this can be done should allow the end users to once again click on a record in the ListBox to open a web page

    Here is how SQL is storing the hyperlinks
    Code:
    http://kb.ancd.ancdelp.com/ancdkb_00002546.htm#http://kb.ancd.ancdelp.com/ancdkb_00002546.htm#
    Here is the current SQL Statement I am trying to get to work - As you will see I'm trying to just Format it back to a hyperlink - Yep - Not working
    
    SELECT dbo_MyTable.RecID, dbo_MyTable.Description, dbo_MyTable.[B-Refs], dbo_MyTable.[L-Codes],
    Format(HyperLink(dbo_MyTable.HyperLinkField AS Instructions, dbo_MyTable.Group, dbo_MyTable.Notes
    FROM dbo_MyTable;
    Fwiw - I have tried HyperLinkPart as well - Fail!

    Thanks so much for any help

    RT

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Presuming the field simply contains the plain text:

    http://kb.ancd.ancdelp.com/ancdkb_00002546.htm

    I wouldn't try to convert it to a hyperlink, I'd put code behind the click or double click event to open the link with FollowHyperlink.

    Eidt: Forum turned the plain text into a hyperlink
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RunTime91 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    281
    OMG!!

    Geez!! Paul, you got me jsmh...

    I thought because it no longer 'looked' like a hyperlink - then hell it must not be a hyperlink...

    Ok, you can stop laughing now..

    Thanks Paul ~!

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help! I'm not laughing, done similar things too many times myself.
    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. Replies: 1
    Last Post: 09-04-2018, 02:24 PM
  2. Converting Hyperlink field back to short text
    By gksmith5 in forum Access
    Replies: 3
    Last Post: 06-02-2018, 01:19 AM
  3. Hyperlink field and linked files management
    By eugenioca in forum Access
    Replies: 5
    Last Post: 09-18-2017, 11:11 AM
  4. Convert Hyperlink field to Text
    By izzo248 in forum Access
    Replies: 3
    Last Post: 08-24-2015, 08:44 PM
  5. Replies: 12
    Last Post: 06-19-2015, 10:02 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