Results 1 to 4 of 4
  1. #1
    billcar2006 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    13

    using a form to view a pdf


    Hi
    I am looking to use a form to view a pdf realated to a record. I have inserted a web browser control into the form. I have this code which works if you point it directly to the file location Me.WebBrowser0.Navigate2 "C:\example.pdf". Can this be changed to access the pdf location from a text box on another open form. I have a text box "PartDrawing" on an open form that has the location address of the pdf.
    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    cant you just open the pdf directly?

    call shell(...

  3. #3
    billcar2006 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    13
    I open the now with a hyperlink from access but I wanted to have them open within the access window.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Changing your code to Me.WebBrowser0.Navigate2 Forms![formname]![PartDrawing] should work, as long as [Partdrawing] contains the fully qualified path and file name.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-09-2014, 09:03 AM
  2. Replies: 2
    Last Post: 03-09-2014, 03:21 PM
  3. Replies: 5
    Last Post: 12-03-2013, 01:25 PM
  4. Replies: 8
    Last Post: 04-29-2013, 11:23 AM
  5. Replies: 16
    Last Post: 09-12-2012, 08:39 AM

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