No problem, see my other message for simplier case.
>Big thank Naomi
>
>bernhart
>
>
>>Your problem looks like running total problem, which is slightly complex.
>>
>>It may be better to do this using procedural code in your case.
If it's not broken, fix it until it is.
My Blog