Hello,
- I have a report based on a query.
- The report contains two grouplevels based on [Order_Id] and [Delivary_Id].
- The Delivary_Id group contains a.o. the field [Amount]
- In the footer of grouplevel Order_Id a total is given of all records of [Amount] that belong to a specific order: =sum([Amount]).
- The report shows all the delivaries categorised by the orders they belong to. And every order shows a =sum([Amount]). This all works well.
Now I have added a subreport in group level Delivary_Id based on QueryX that contains a.o. [Amount2]. For every Delivary_Id there are 1 or more records of [Amount2] that are shown on the report too.
Now I would like to add the sum of all the records of [Amount2] from all delivaries belonging to a specific Order_Id and add this to =sum([Amount]).
I have not been able to do this.
I allready have tried a lot, but now I think it must be something like:
=sum([Amount])+ Dsum("[Amount]";"[QueryX]";Criterium???)
But how to define the criterium?
Dsum("[Amount]";"[QueryX]";"Order_Id=1") for example works, but the Order_Id is not a fixed number here!
Can anyone help me out please?
Manuel, Netherlands.
- I have a report based on a query.
- The report contains two grouplevels based on [Order_Id] and [Delivary_Id].
- The Delivary_Id group contains a.o. the field [Amount]
- In the footer of grouplevel Order_Id a total is given of all records of [Amount] that belong to a specific order: =sum([Amount]).
- The report shows all the delivaries categorised by the orders they belong to. And every order shows a =sum([Amount]). This all works well.
Now I have added a subreport in group level Delivary_Id based on QueryX that contains a.o. [Amount2]. For every Delivary_Id there are 1 or more records of [Amount2] that are shown on the report too.
Now I would like to add the sum of all the records of [Amount2] from all delivaries belonging to a specific Order_Id and add this to =sum([Amount]).
I have not been able to do this.
I allready have tried a lot, but now I think it must be something like:
=sum([Amount])+ Dsum("[Amount]";"[QueryX]";Criterium???)
But how to define the criterium?
Dsum("[Amount]";"[QueryX]";"Order_Id=1") for example works, but the Order_Id is not a fixed number here!
Can anyone help me out please?
Manuel, Netherlands.