ActiveX Control for Adobe PDF Reader not working

Maxine Nietz 1 Reputation point
2024-04-09T21:14:49.2266667+00:00

I have now posted this issue 3 times with no response. What's up with that !!!!

Access 365

I have a form "ViewPDFForm" that has an ActiveX control named "ActiveXCtl2." It is an Adobe PDF Reader control. However, I cannot get it to display the PDF. It always errors on the last line "Forms!ViewPDFForm!ActiveXCtl2.source=filepath." I have checked and the variable "filepath" is the correct value. The PDF is fine. The error message is "RunTime Error 438; Object doesn't support this property or method." The code below is on a command button on a different form; the field "PDFName" is also on this other form. PLEASE HELP!

Dim filepath As String

DoCmd.OpenForm "ViewPDFForm"

filepath = "E:" & Me.PDFName

Forms!ViewPDFForm!ActiveXCtl2.Source = filepath

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
312 questions
0 comments No comments
{count} votes