Ok,
Forget all I've said before. Here is an exemple:
records in query shown by report:
Consultation_id: Long Integer - DateOfConsultation: Date -
VATpercentageOfMedication: Percentage - priceOfMedication: currency
************************-**********************-****************************
*******-************************
1--------------------------------12/05/1997---------------------21%---------
-------------------------------84?---------------------------
1--------------------------------12/05/1997---------------------21%---------
-------------------------------52?---------------------------
1--------------------------------12/05/1997---------------------30%---------
-------------------------------15?---------------------------
2--------------------------------12/05/1997---------------------5%----------
-------------------------------7?-----------------------------
3--------------------------------13/05/1997---------------------5%----------
-------------------------------24?----------------------------
This is what the report should show:
Date:12/05/1997
Consultation ID: 1
VAT percentage: 21%
sum of medicationPrices: 156?
VAT percentage: 30%
sum of medicationPrices: 15?
Consultation ID: 2
VAT percentage: 5%
sum of medicationPrices: 7?
Date:12/05/1997
Consultation ID: 3
VAT percentage: 5%
sum of medicationPrices: 24?
Grand totals PER VAT percentage:
VAT percentage: 21%
total sum of medicationPrices: 156?
VAT percentage: 30%
total sum of medicationPrices: 15?
VAT percentage: 5%
sum of medicationPrices: 31?
I managed to show everything BUT the grand totals: due to the fact that I
want to show all the information of 1 consulatation at the same place I
cannot make VAT percenateg the first grouping field. But if I don't do
that, I don't know how I can calculate the grand totals. To solve this I
made another query calculating the grand totals but I don't know either how
I can display that query in the report.
Hope this is clarifying (again
). But you convinced me an example is
better to understand than my (vague) try-to-explanation :/
greets,
Jeroen