J
JB
My question is very simple. I am simply wanting to
use VBA to properly reference an image object inside of a report.
Let's say I have a report called rptImgReport.
From my "Open" event of this report I have the following code.
This does not work below.
Private Sub Report_Open(Cancel As Integer)
Report_rptImgReport.Image143.Picture = "C:\MyImage.jpg"
End Sub
I cannot reference the "Picture" property this way. I've spent a couple of
hours on this and even looked through the Object Browser - and I cannot seem
to reference it. I'm not new to VBA and I'm in MS Access 2003. I can get
the Report.Picture property, but the image control on the report - no go.
I'm sure it's something simple and I'm just not seeing it. Thanks!
use VBA to properly reference an image object inside of a report.
Let's say I have a report called rptImgReport.
From my "Open" event of this report I have the following code.
This does not work below.
Private Sub Report_Open(Cancel As Integer)
Report_rptImgReport.Image143.Picture = "C:\MyImage.jpg"
End Sub
I cannot reference the "Picture" property this way. I've spent a couple of
hours on this and even looked through the Object Browser - and I cannot seem
to reference it. I'm not new to VBA and I'm in MS Access 2003. I can get
the Report.Picture property, but the image control on the report - no go.
I'm sure it's something simple and I'm just not seeing it. Thanks!