Share via

ActiveX Issue

Anonymous
2024-04-08T18:49:37+00:00

Access 365, Windows 10

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

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. George Hepworth 22,855 Reputation points Volunteer Moderator
    2024-04-08T18:53:37+00:00

    Did this ever work in this form? Is this a new form just being created? What bitness is your installation of Access 365, 32 or 64?

    Was this answer helpful?

    0 comments No comments