i could figure it out from some help in other forums.
this is the solution.
In your main report, create two formulas:
//{@reset} to be placed in the page header:
whileprintingrecords;
shared stringvar x := "";
//{@accum} to be placed in the detail section:
whileprintingrecords;
shared stringvar x;
if instr(x,totext({table.OperNo},"000") = 0 then
x := x + totext({table.OperNo},"000") + ", "; //add as many zeros as digits in the highest operator number
Then in the subreport, place the Operator Number and the Operator Name field. Do not link the subreport to the main report. Instead go to the section expert in the subreport->details->suppress->x+2 and enter:
whileprintingrecords;
shared stringvar x;
instr(x,totext({table.OperNo},"000")) = 0
Make sure the page footer is tall enough to accommodate the maximum number of results per page.
|