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!

Problem with Adobe ActiveX

Status
Not open for further replies.

fourofclubs

Programmer
May 13, 2003
18
0
0
CA
I'm trying to display a pdf on a form using the Adobe ActiveX control (in MSAccess 97). I'm using a check box to control whether the pdf is displayed or not.
The code in the click event for the check box is as follows:

Code:
If [chkShowPDF] Then
  [PDFframe].src = [PDFName]
Else
  [PDFframe].src = ""
End If

This works to display the pdf, but the problem arises if the file is loaded twice (if, for example, the check box is clicked to show the pdf, again to hide it, and then again to display it again). I end up getting an "access violation" error message which shuts down Access completely. The same thing happens if I try to open the properties for the ActiveX control.

Any help on this would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top