Hi again,
I try to reformulate my question, hope it will be better
(if anybody know how to cancel my previous thread, too...)
I have a form with subform. The data displayed in the subform is based on the selected two combo boxes value in the main form. For exp. I select "Alex" (by Name) and "March" (by Period) then the subform will display all the deals gained by Alex in March.
Inside the subform, there's amount of each deal. This amount needs to be added cumulatively to further calculate the commission for each deal. That's why I need the amount of previous deal to be added with the amount of the current deal = cummulative deal revenue.
For instance, deal 1 = $ 1,000. Cummulative Revenue = $1,000.
Deal 2 = $ 2,000 then cumm. rev = $ 1,000 + $ 2,000 , and etc.
The problem is deal no.1 by Alex is indexed as 3, and deal no.2 by Alex is indexed as 5 becaused index no.4 is someone else' deal.
How to refer to the previous deal amount in this case?
If I use Dlookup, in the criteria (where condition) I cannot apply {ID]-1, as it will refer to one index before for all the deals records instead of one index before for one person deals.
Please help.... thanks....
I try to reformulate my question, hope it will be better
(if anybody know how to cancel my previous thread, too...)
I have a form with subform. The data displayed in the subform is based on the selected two combo boxes value in the main form. For exp. I select "Alex" (by Name) and "March" (by Period) then the subform will display all the deals gained by Alex in March.
Inside the subform, there's amount of each deal. This amount needs to be added cumulatively to further calculate the commission for each deal. That's why I need the amount of previous deal to be added with the amount of the current deal = cummulative deal revenue.
For instance, deal 1 = $ 1,000. Cummulative Revenue = $1,000.
Deal 2 = $ 2,000 then cumm. rev = $ 1,000 + $ 2,000 , and etc.
The problem is deal no.1 by Alex is indexed as 3, and deal no.2 by Alex is indexed as 5 becaused index no.4 is someone else' deal.
How to refer to the previous deal amount in this case?
If I use Dlookup, in the criteria (where condition) I cannot apply {ID]-1, as it will refer to one index before for all the deals records instead of one index before for one person deals.
Please help.... thanks....