Using Acrobat with MS Access VBA
Using Acrobat 9.5. I'm trying to analyse a problem, so I have this test code:
CODE
Sub testObjects()
Dim i As Boolean
Dim objapp As acrobat.AcroApp
Set objapp = New acrobat.AcroApp
objapp.Show
i = objapp.CloseAllDocs
Debug.Print i
i = objapp.Exit
Debug.Print i
Set objapp = Nothing
End Sub
After Objapp.closealldocs I get i = true (succeeded) but after i=objapp.exit I get i= false (failed), and sure enough Acrobat is still active. How do I get Acrobat to close? This is a bit of test code. In the real app task manager shows acrobat using more and more memory as the app loops through the records.
I suspect I'm missing something obvious here, but what? My experience with Acrobat and Access automation is limited, so be gentle with me!
If this is the wrong forum, please point me to where I ought to go.
