francesguan
Technical User
Dear all,
I once create shared variable in subreport and used in main report. but today I have spent hours and still can not figure out why the result I got in main report is not matched to subreport. the following is how I did:
in subreport,
whileprintingrecords;
shared numbervar OpenOrder:=Sum ({@QtyOpen})
I placed it in the group footer; group name is item.item;
in Mainreport,
whileprintingrecords;
shared numbervar OpenOrder;
"get" & OpenOrder & "from subreport"
I put this on group header#1, the same place as subreport I put, so I can compare the the difference.
the link between the main report and sub report is item.item=item.item
the result is this variable do show up in main report, but not matched to the correct item.
I tried to attach a screen copy here, but not find how.
Thanks a lot in advance in any comments,
Frances
I once create shared variable in subreport and used in main report. but today I have spent hours and still can not figure out why the result I got in main report is not matched to subreport. the following is how I did:
in subreport,
whileprintingrecords;
shared numbervar OpenOrder:=Sum ({@QtyOpen})
I placed it in the group footer; group name is item.item;
in Mainreport,
whileprintingrecords;
shared numbervar OpenOrder;
"get" & OpenOrder & "from subreport"
I put this on group header#1, the same place as subreport I put, so I can compare the the difference.
the link between the main report and sub report is item.item=item.item
the result is this variable do show up in main report, but not matched to the correct item.
I tried to attach a screen copy here, but not find how.
Thanks a lot in advance in any comments,
Frances