Results 1 to 7 of 7
  1. #1
    d-mcc56 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2014
    Posts
    16

    Linking pdfs to records on a report??

    Hey all,



    On my computer there is 1000s of records with specific agreement numbers. In my database I have a report that displays agreements by their agreement number if they have any outstanding work that has not been completed under the terms. I was curious if it possible to link all the agreement pdfs on my computer to the records in the database? Whether I link it in the query, table, or report I don't know either. Ideally I want to be able to provide the database with a path to all the agreements, then match each agreement in the database to the files on my computer, then if possible also search for based on keywords and open a pdf if the agreement is clicked on in the report.

    To me this sounds like I'm asking a lot, and who knows I might be I don't actually know.
    But if you are able to help that would be greatly appreciated.

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yes, is possible, can get complicated.

    Can have a field in table that stores the file path. If the folder path is the same for all then can construct the path in query or code with an expression.

    Are the PDFs named with the agreement number?

    Can use FollowHyperlink to open the PDF document.

    Or http://allenbrowne.com/func-GoHyperlink.html
    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
    d-mcc56 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2014
    Posts
    16
    The folder path is the same for all of them in my company's share drive.
    Once I get to the folder of agreements they all have different agreement folders that are numbered similar to E##.##
    in the agreement folders they each have a pdf called "Agreement Signed"
    The actual pdf name is the same for all agreements, it's the agreement files that are all different.
    I don't know if that simplifies things?

  4. #4
    d-mcc56 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2014
    Posts
    16
    Oh also btw I am using Access 2010 now on Windows 7, no longer access 2003

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Could have a field with the folder name. If the folder name is the same as the agreement number, just use the agreement number field to construct the hyperlink path.



    BTW, could change your user profile.
    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.

  6. #6
    d-mcc56 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2014
    Posts
    16
    I am very new to access and I do not know how to construct a hyperlink path

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That's why I gave you reference to Allen Browne code.

    Or you can use the intrinsic FollowHyperlink http://msdn.microsoft.com/en-us/libr...ffice.11).aspx.

    Build the hyperlink path string with concatenation of literal text and variable data - use UNC path, like:

    "\\servername\path\" & Me![aggreementnumberfield] & "\Agreement Signed.pdf"
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-19-2013, 07:41 AM
  2. Replies: 10
    Last Post: 12-07-2012, 01:57 PM
  3. Print linked pdfs within an Access Report II
    By cjwagner in forum Reports
    Replies: 3
    Last Post: 05-30-2011, 04:25 PM
  4. Print linked pdfs within an Access Report
    By alpruett in forum Reports
    Replies: 6
    Last Post: 05-20-2011, 05:25 AM
  5. Create PDFs from a report
    By twosides in forum Programming
    Replies: 42
    Last Post: 03-04-2010, 06:48 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