Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Adobe acrobat File using vba in Access 1

Status
Not open for further replies.

Mack2

Instructor
Mar 12, 2003
336
US
How do I open an adobe acrobat file using vba? I have the code below, but it returns the error message "Active x object can not create" I do have a reference set to adobe
THANKS!!!!

Set avCodeFile = CreateObject("AcroExch.AVDoc") 'This is the code file
Set avFormCapture = CreateObject("AcroExch.AVDoc") 'This will be each jpg in turn

'Open the already created code file
avCodeFile.Open DOC_FOLDER & "\test.pdf", "Code File"
Set pdCodeFile = avCodeFile.GetPDDoc
 
Sounds easy enough, but what object is that a method of?
Thanks
 
Did you look at the examples provided by the VBA help system? I'm using Access 2003.
 
Is the pdf file loading in a OLE Object Controle, such as a Unbound Object Frame ?
 
The followHyperlink method did it!! THANKS for the tip sxschech!!!
The pdf file is not in an ole object control AlienProbe..thanks for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top