Hi,
I've created on a form an event to create a new report. I've almost done but can't solve one problem with newly created image control in the report.
I have a source with image path but i couldn't find solution how to add this path info to the control.
Below is the part of my code. I receive error on 15th line: "Run-time error'438': object doesn't support this property or method". Please give some advises.
I've created on a form an event to create a new report. I've almost done but can't solve one problem with newly created image control in the report.
I have a source with image path but i couldn't find solution how to add this path info to the control.
Below is the part of my code. I receive error on 15th line: "Run-time error'438': object doesn't support this property or method". Please give some advises.
Code:
Dim txtPhotoID As Access.Image Set rpt = CreateReport strReportName = rpt.Name title = "Report1" DoCmd.RunCommand acCmdDesignView rpt.RecordSource = "SELECT ImagePathlink FROM test1;" Set txtPhotoID = CreateReportControl(rpt.Name, acImage, _ acGroupLevel2Header, , , 200, 200) txtPhotoID.SizeToFit txtPhotoID.Name = "CatgPhoto" rpt.Controls("CatgPhoto").ControlSource = "ImagePathlink"
Comment