Results 1 to 6 of 6
  1. #1
    William is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    4

    Question Easy question: Creating relative hyperlinks to .pdfs with Web Browser Controller

    I'm displaying .pdf files using the Web Browser Controller using the absolute path;




    ="R:\Certificate of Veterinary Project\" & [Document] & ".pdf"
    ([Document] being the file name)


    I'd like the path to be relative so I can burn this to a CD.


    I tried "../" & [Document] & ".pdf" without success.




    Thanks for your help in advance

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    i dont get it. burn WHAT to a CD?

  3. #3
    William is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    4
    Quote Originally Posted by ajetrumpet View Post
    i dont get it. burn WHAT to a CD?
    Burn the Access file (the .accdb) and the .pdfs to CD.
    So when I go to a different computer I can pop in the CD, load up the .accdb, and view the .pdf files from the CD via the Web Browser Controller I added to the form.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    ummm....dont you just COPY the files on over?

  5. #5
    William is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    4
    Quote Originally Posted by ajetrumpet View Post
    ummm....dont you just COPY the files on over?
    ...

    The hyperlinks to the .pdf are absolute; thus break when I put the project on CD. I want to make them relative so the root path changes to anything from "D:/" or if their drive is "F:/" when it's used in different computers.

    As it stands right now I get a "website cannot be found" message in the Web Browser Controller window when I put the project on CD.

    I thought using "../" would do the trick, but it did not.

  6. #6
    William is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    4
    I solved the issue on my own, no thanks to ajetrumpet who saw fit to spam my thread with useless babble and trolling.

    Solution;
    =([CurrentProject].[Path]) & "/" & [Document] & ".pdf"


    Now my Web Browser Controller looks for the .pdfs in the folder where the .accdb is located.


    Thank you me

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

Similar Threads

  1. Creating Hyperlinks in a report
    By baseborn in forum Reports
    Replies: 6
    Last Post: 01-25-2014, 03:08 PM
  2. Easy Question Need Help With
    By jdusaf in forum Access
    Replies: 1
    Last Post: 03-23-2011, 11:33 AM
  3. Easy question
    By Danzig in forum Access
    Replies: 11
    Last Post: 10-28-2010, 06:48 PM
  4. Super easy question probably
    By octoentandre in forum Database Design
    Replies: 2
    Last Post: 08-30-2010, 12:21 PM
  5. Easy question...so why can't I figure it out?
    By bdrago527 in forum Access
    Replies: 1
    Last Post: 10-02-2008, 02:40 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