Results 1 to 5 of 5
  1. #1
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37

    Question Linking PDF to button


    Hello
    As you may have guessed I'm wondering how I can link a PDF to a button.

    Thanks for any help!

  2. #2
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    Linking PDF to button

    Is this a PDF per record?
    Is this a single PDF saved in the same folder as the database.
    Is the PDF already created?

    Code:
    Sub Command1_Click()
        Application.FollowHyperlink CurrentProject.Path & "filename.pdf"
    End Sub

  3. #3
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    Just a signle PDF Document I would like to have linked within the database, What the PDF is, is just a training manual on how to navigate through the database

  4. #4
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    Linking PDF to button

    Just put the PDF in the same folder as the database

    Change "filename.pdf" to your filename.

    Add a button to a form and add the above code.

    If the file is in another folder just change it to
    Code:
    Application.FollowHyperlink "c:\path\folder\filename.pdf"
    With your file path and name.

  5. #5
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37
    Okay thank you!

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

Similar Threads

  1. Button linking back to form?
    By Raygar in forum Reports
    Replies: 1
    Last Post: 05-14-2012, 06:26 PM
  2. Linking button on form to report
    By robertdudley95 in forum Forms
    Replies: 19
    Last Post: 11-09-2011, 12:14 PM
  3. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  4. Replies: 0
    Last Post: 03-04-2011, 10:28 AM
  5. Replies: 6
    Last Post: 02-09-2010, 07:53 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