Results 1 to 6 of 6
  1. #1
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    Form Variable in Hyperlink

    Hi Guys,

    This is going to sound really dumb but I taught myself to use access and so there are large chucks of simple processes I don't know and need to learn as I go so please excuse my thickness. If you could also post in laymen's terms that would be great.

    I have a load of pdf files located in a folder on our shared drive (k:/edid/) that I need my DB to be able to link to. I need either a hyper link on a label or a button in my form that when clicks uses the data from field (EDIDREF) to complete the link.

    so basically i need the hyper link to be k:/edid/45456.pdf with the number changed to whatever is in the EDIDREF field.

    I have looked for ages and I cannot find anything to help.

    Thanks in advance

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you talking about putting strings together with the concantenation character "&"?

  3. #3
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21
    maybe, i don't know what that means.

    I basically want to create a new text field merging text and a value from another field (or merging two fields). Or a text label in my form created by merging text with a field value (or two fields).

    I have done something similar on my website and if this was PHP I would type this in the page source ("edidref" is the name of the field in the database).

    c:/edid/{edidref}.pdf

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If 45456 was in the EDIDREF control then:
    "k:/edid/" & Me.EDIDREF & ".pdf"
    would yield "k:/edid/45456.pdf"
    as a string.

  5. #5
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21
    thanks perfect.

    I knew it would be simple but i just cound not find the right syntax

    rep+

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could help. Are you ready to follow the link in my sig and mark this thread as Solved?

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

Similar Threads

  1. have hyperlink use own name/text
    By airhud86 in forum Access
    Replies: 1
    Last Post: 12-16-2009, 09:35 AM
  2. How To View Hyperlink For Attachment File
    By treyprice in forum Access
    Replies: 0
    Last Post: 07-28-2009, 12:51 PM
  3. Passing a variable to a form
    By cjamps in forum Forms
    Replies: 0
    Last Post: 03-02-2009, 05:32 AM
  4. Hyperlink problem
    By peterl in forum Programming
    Replies: 0
    Last Post: 01-13-2009, 07:21 AM
  5. help with dynamic hyperlink to pdf
    By iresolver in forum Access
    Replies: 0
    Last Post: 12-24-2008, 01:21 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