L
lan yu
Hi.
I have a problem with linking report and subreport. I set Link
Master/Child Fields to "Object ID". But subreport looks just the same
on every page.
To be more precise:
Subreport has the fields "Object ID" and "Object Type ID". When I run
the query it is based on, I get only one record:
Object ID Object Type ID
172 11
The Subreport is in the footer of the group "Object ID". When I view
the report there are in total 5 groups with different "Object IDs", one
of which is 172. But subreport displays Object Type ID = 11 in the
footer of every group.
There is also a Picture in my subreport, its data is loaded during
run-time based on Object Type ID, but I don't think the problem has
anything to do with it. Just in case I set a condition to only run the
code loading pictures if Me.Recordset.RecordCount >0.
I have a problem with linking report and subreport. I set Link
Master/Child Fields to "Object ID". But subreport looks just the same
on every page.
To be more precise:
Subreport has the fields "Object ID" and "Object Type ID". When I run
the query it is based on, I get only one record:
Object ID Object Type ID
172 11
The Subreport is in the footer of the group "Object ID". When I view
the report there are in total 5 groups with different "Object IDs", one
of which is 172. But subreport displays Object Type ID = 11 in the
footer of every group.
There is also a Picture in my subreport, its data is loaded during
run-time based on Object Type ID, but I don't think the problem has
anything to do with it. Just in case I set a condition to only run the
code loading pictures if Me.Recordset.RecordCount >0.