Results 1 to 5 of 5
  1. #1
    emeteco is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2019
    Posts
    3

    * as literal in a HyperlinkPart expression

    HI

    I have an expression query such as:



    BULLETIN: HyperlinkPart ("http://172.12.317.33/service/ycyc.php?/#/name=" & [TABLE1]![COLUMN6];1)

    When i run it the # is interpreted as a date or number character, not as literal. I Try:

    1) "&"#"&"
    2) \#
    3) [#]
    4) "&""#""&"

    i'M Obtaining results as:

    http://172.12.317.33/service/ycyc.php?/
    http://172.12.317.33/service/ycyc.php?/\
    http://172.12.317.33/service/ycyc.php?/[

    Thanks for the help

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Maybe need to use % sign and hex value for special characters. Review http://allenbrowne.com/func-GoHyperlink.html

    For "#" that appears to be %23
    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
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    I suspect that even though the character is coded, the function will interpret the coded character as it normally does and still truncate the result (because it's being passed to the function).

    Maybe use the function 2x and a character code, so that the left and right parts are individually passed to the function but the character isn't involved. Like
    BULLETIN: HyperlinkPart("http://172.12.317.33/service/ycyc.php?/",1) & Chr(35) & HyperlinkPart("/name=" & [TABLE1]![COLUMN6],1)

    I note that your example uses semi colon ![COLUMN6];1
    but I don't think that is the main problem.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    emeteco is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2019
    Posts
    3
    Thank's you both, the secod post work like a charm"

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    You're welcome. Please mark this thread as solved if you're done with it.
    Thread Tools combo near the top of your first post.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-23-2017, 05:19 AM
  2. How to declare literal array in VBA
    By MattLewis in forum Programming
    Replies: 1
    Last Post: 11-14-2016, 11:01 PM
  3. Date was defined as a 'Literal'
    By johnson8809 in forum Queries
    Replies: 2
    Last Post: 02-21-2015, 06:02 PM
  4. Replies: 1
    Last Post: 10-29-2012, 03:07 PM
  5. Replies: 5
    Last Post: 05-29-2012, 08:50 PM

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