Results 1 to 5 of 5
  1. #1
    emassey0411 is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    10

    Hyperlink returns the value with a leading # and ending # on a form

    I have been searching for the way to fix this issue.



    I am pulling in a hyperlink from a table into my form but when I view the form Access is adding a '#' to both the front and end of the hyperlink. How do I get rid of this? I am using the following to get the associated hyperlink based on what is selected in a different field.

    Code:
    =[PRISONLIST].[COLUMN](8)
    Click image for larger version. 

Name:	hyperlink-form.jpg 
Views:	17 
Size:	27.9 KB 
ID:	47937Click image for larger version. 

Name:	hyperlink-table.jpg 
Views:	19 
Size:	201.4 KB 
ID:	47938

    Sorry if this has been asked and answered before. I have looked but seriously can't find it.

    If I need to add something to the code above please include where (and how to get there) to do it.

    thank you again.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Field combobox column is pulling from appears to be a Hyperlink type. That is how Access structures hyperlink string. Set the textbox IsHyperlink property to yes.
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,976
    Is that control based on hyperlink type field?
    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

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    @Welshgasman, no. It has an expression referencing combobox column. Since the column is just text, the expression doesn't know data came from hyperlink field so have to format the textbox.
    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
    emassey0411 is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    10
    That did it @June7. Thank you so much!!! really appreciate the help

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

Similar Threads

  1. Date Loop Until Not Ending
    By jdanieluk in forum Programming
    Replies: 3
    Last Post: 12-27-2019, 12:34 PM
  2. Ending my if statements
    By UT227 in forum Programming
    Replies: 3
    Last Post: 05-25-2018, 10:19 AM
  3. Log In Ending
    By GCLIFTON in forum Access
    Replies: 10
    Last Post: 06-02-2016, 11:12 AM
  4. Replies: 9
    Last Post: 12-05-2013, 11:48 AM
  5. Image as never ending wallpaper
    By 95DSM in forum Database Design
    Replies: 1
    Last Post: 07-30-2010, 10:02 AM

Tags for this Thread

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