Results 1 to 4 of 4
  1. #1
    izzo248 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    7

    Convert Hyperlink field to Text

    I made a table with a hyperlink field called Title, which I'd intended to use to link to documents residing in my computer. After entering a lot of data, I've decided it was a bad idea because Access automatically creates an http link that doesn't exist.



    I'd like to convert the field to plain text. When I simply change the data type, the result is the whole link spelled out. If I try right-clicking and choosing "Remove hyperlink", Access removes the contents of that field entirely. Anyhow, removing one link at a time would be cumbersome because the table contains over 400 records.

    Is there a way I can remove all of those link in the table, leaving only the Title?

    Thanks in advance for any help that can be offered.
    Izzo

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Hyperlink are composed of 3 parts. Review http://www.allenbrowne.com/casu-09.html

    Use string manipulation functions to extract the title and populate field in an UPDATE query.
    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
    izzo248 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    7
    Not sure what you mean by string manipulation functions. The titles are repeated in the hyperlinks, which look like this:
    Apology#http://Apology#
    I'd need to delete from the first # to the end of the string. Is there a wildcard that does this?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    No wildcard will help.

    String manipulation functions: Left, Right, Mid, InStr, InStrRev, Len

    Appears you want the 'display text' part.

    Left([fieldname], InStr([fieldname], "#") - 1)
    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. Yes/No Field - convert Yes to Text On Report
    By mjsearcy in forum Access
    Replies: 2
    Last Post: 03-15-2015, 12:53 PM
  2. Convert memo field to multiple text fields
    By hertfordkc in forum Access
    Replies: 3
    Last Post: 11-14-2014, 06:59 AM
  3. Replies: 2
    Last Post: 12-10-2012, 02:15 PM
  4. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  5. Convert number to fixed length text field
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-02-2010, 07:26 PM

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