Results 1 to 6 of 6
  1. #1
    HUMMER87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    3

    Post Link to PDF's

    Hi All



    I was just looking for a little advise.

    I have a database which is in need of some TLC, its fully functional however would like to try and implement an idea I have.

    Basically I have a folder with loads of PDF's in. These PDF's are named 18000, 18001,18002 lets say for arguments sake.

    And on a regular basis new PDF's are added to this folder.

    Within my Access database I have these numbers generated consecutively.

    My question, is there a way for me to implement a button on to one of my forms that would allow access to go to this folder where all the PDF's are stored look up the consecutive number on the record I have open and open the PDF that corresponds with it.

    It all sounds a little pie in the sky but I am sure someone must have tried a similar thing.

    I would be greatly appreciative of any support as I am struggling to come up with a solution. Its a long while since the database was built so I am having to go over my footsteps to remember things.

    Look forward to any responses

    Many Thanks in advance

    Tom

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You say you have a record open with the consecutive number of the PDF you want? Are the files named 18000.pdf for example. Are they always in the same directory? If so, then of course you can do this.

  3. #3
    HUMMER87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    3
    Yep the files at the moment are not but they will be and yes they are all in the same directory

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You would need the complete path name concatenated with the number and ".pdf" passed to the following procedure:
    http://access.mvps.org/access/api/api0004.htm

  5. #5
    HUMMER87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    3
    Thanks for getting back to me not overly sure exactly what you mean... When I built my database I never implemented code :-S so am a little unsure as to how to attempt your suggestion

    Many thanks

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The link I supplied goes in a Standard Module named basCode. Then add a Command Button to your form that uses code and goes to a record. Then post the code in the button and we will modify it for you to open the PDF.

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

Similar Threads

  1. Replies: 5
    Last Post: 09-10-2013, 02:52 AM
  2. Replies: 7
    Last Post: 08-28-2013, 02:30 AM
  3. ID link
    By mpaulbattle in forum Access
    Replies: 3
    Last Post: 08-13-2013, 06:27 AM
  4. Replies: 1
    Last Post: 07-26-2011, 05:18 PM
  5. Link Master Field and Link Child Field
    By evander in forum Forms
    Replies: 2
    Last Post: 05-25-2010, 09:13 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