Results 1 to 2 of 2
  1. #1
    honey2wood is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    25

    Like a Hyperlink

    Hi Everybody.

    I have created a form which collects user data in a number of fields. Part of these records is a field for an individual pdf file relevent to each record. These files are saved independently of the database but named with the record number (1234.pdf)
    I have used hyperlink to open these files. (Right click the cell select hyperlink follow the path to where the file is stored etc.) Which is fine but the path to it takes ages to go through each time.
    I have tried an 'OnClick' command and use FollowHyperlink "T:\etc...." but that just gets me to the folder where the file is saved.
    What I need to do is either save a file to that folder or be able to open the file with the record number
    I am sure I can configure it so that if I click the cell it opens the PDF or if the file does not exist it gives me the option to save one.
    As I have said I have tried the
    FollowHyperlink "T:\etc....\1234.pdf" but that brings up the same file all the time and if there is no file it gives an error.
    I hope you can understand the issue. I'm not that good at explaining things but it makes sense to me . I understand VB but not good at working through a problem.



    Cheers
    Graham

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Hi Graham,

    You need to dynamically build your full path in the onclick event: "T:\....." & me.recordnumber & ".pdf"

    Cheers,
    Vlad

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

Similar Threads

  1. Hyperlink add on
    By Perfac in forum Programming
    Replies: 2
    Last Post: 02-01-2018, 12:13 PM
  2. Hyperlink
    By sahand in forum Forms
    Replies: 2
    Last Post: 04-21-2014, 04:33 AM
  3. Replies: 4
    Last Post: 01-05-2013, 11:07 AM
  4. help with hyperlink
    By bmd in forum Access
    Replies: 1
    Last Post: 08-24-2011, 12:41 PM
  5. Replies: 4
    Last Post: 01-31-2011, 03:19 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