G
Guldo K
Hello.
I set up a report with two groupings.
When formatting the report I set some txtboxes to zero;
those txtboxes lie in group1-footer.
When formatting report body:
% Imponibile=round(Peso*Prezzo,2)
% Select case aIVA
% Case 0.04
% txtbox1 = txtbox1 + Imponibile
% Case 0.1
% txtbox2 = txtbox2 + Imponibile
% .....
% End Select
where Imponibile, Peso and Prezzo are recordset fields.
Then it ends up with 3 groups belonging to the 2nd group level;
OK with the first one, but the other two are wrong:
I realized that the first record in each of the two groups
is processed twice, so that the total in the group footer is
too high.
Why?
Just in case I've not been clear enough, the situation is
as follows:
*BeginReport*
Grouping1
Grouping2
record1 (OK)
record2
record3
NewGroup
record1 (twice)
record2
NewGroup
record1 (twice)
record2
record3
G2Footer
G1Footer
txtbox1
txtbox2
*EndReport*
The records marked '(twice)' are correctly
displayed only once in the report, but they're accounted
for twice, so that sum in txtbox1 is higher
than it should be.
Thanks,
Guldo
I set up a report with two groupings.
When formatting the report I set some txtboxes to zero;
those txtboxes lie in group1-footer.
When formatting report body:
% Imponibile=round(Peso*Prezzo,2)
% Select case aIVA
% Case 0.04
% txtbox1 = txtbox1 + Imponibile
% Case 0.1
% txtbox2 = txtbox2 + Imponibile
% .....
% End Select
where Imponibile, Peso and Prezzo are recordset fields.
Then it ends up with 3 groups belonging to the 2nd group level;
OK with the first one, but the other two are wrong:
I realized that the first record in each of the two groups
is processed twice, so that the total in the group footer is
too high.
Why?
Just in case I've not been clear enough, the situation is
as follows:
*BeginReport*
Grouping1
Grouping2
record1 (OK)
record2
record3
NewGroup
record1 (twice)
record2
NewGroup
record1 (twice)
record2
record3
G2Footer
G1Footer
txtbox1
txtbox2
*EndReport*
The records marked '(twice)' are correctly
displayed only once in the report, but they're accounted
for twice, so that sum in txtbox1 is higher
than it should be.
Thanks,
Guldo