Hi
I have made a report based on a query that looks at student results. I'm trying to display a photo of the individual student in the Student Header that corresponds to the records being displayed.
I have tried two different approaches with code in two different locations and receive different errors:
The error I get with this one is "Runtime error '2455'. You entered an expression that has an invalid reference to the property Picture." I've seen this code several times in this forum so thought it would work?
My other approach was the one that works for me in my Forms:
This one rewards me with an error the "Object doesn't support this property or method". I suspect it is refering to the word "Picture" as is doesn't appear in the drop down list when I hit the dot (.) after [imgRptWindow].
Has anyone seen this error before? It has me stumped - I can make it work on a form but not in a report, I thought it would be the same, or similar.
Any help appreciated.
I have made a report based on a query that looks at student results. I'm trying to display a photo of the individual student in the Student Header that corresponds to the records being displayed.
I have tried two different approaches with code in two different locations and receive different errors:
Code:
Me![imgRptWindow].Properties("Picture") = Me![txtRptPhotoPath]
The error I get with this one is "Runtime error '2455'. You entered an expression that has an invalid reference to the property Picture." I've seen this code several times in this forum so thought it would work?
My other approach was the one that works for me in my Forms:
Code:
Me![imgRptWindow].Picture = Me![txtRptPhotoPath]
This one rewards me with an error the "Object doesn't support this property or method". I suspect it is refering to the word "Picture" as is doesn't appear in the drop down list when I hit the dot (.) after [imgRptWindow].
Has anyone seen this error before? It has me stumped - I can make it work on a form but not in a report, I thought it would be the same, or similar.
Any help appreciated.