Results 1 to 6 of 6
  1. #1
    khumbo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    12

    open a pdf stored as an ole object

    hey guys,

    i have a help file which i stored as a pdf in a table as an ole object. Does anyone know how to open it up from the table?

    thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Do you want to open the file in Adobe Reader or Acrobat or view the PDF embedded on form?

    Does this help
    http://www.pcreview.co.uk/forums/re-...-t2924668.html
    http://www.dbforums.com/microsoft-ac...bject-vba.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
    khumbo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    12
    thanks for the reply. I would like to view it in Adobe Reader.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    I just reread your op and caught that you want to open from the table. Only way I can see that happening is to right click on the field > Package Object > Activate Contents. This opens a popup - click Open.
    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.

  5. #5
    khumbo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    12
    sorry i just realized i might have not been very specific. I have a help button on the ribbon and when i click it i want to open up the pdf file which is stored in a table as an ole object.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    I doubt code could address table directly. However, bind a form to the table and code can reference the current record. I created a bound OLE control and a button on a form. This code in button Click event works:

    Me.OLEBound94.Action = acOLEActivate

    The ribbon button would probably have to call a public function.
    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: 01-30-2013, 01:55 PM
  2. Export Data w/FSO - Open object recordset failed
    By JayZoll in forum Programming
    Replies: 1
    Last Post: 11-12-2012, 01:38 PM
  3. Replies: 8
    Last Post: 04-13-2012, 12:25 PM
  4. Replies: 16
    Last Post: 04-11-2012, 10:56 AM
  5. Replies: 4
    Last Post: 04-22-2011, 03:08 PM

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