I have a query that I need to do a subtotal in, but so far can only figure out how to do a running sum. I can't do this in a report because of other things running. The running sum would be fine if I could figure out how to only show the last total amount of the group, and NOT each record's total. Does anyone know how to do this in an expression builder? Here's what I have thus far for my running sum:
Cum Tot after Sale: Val(DSum("[License Fees with Emp].[Commissionable LF]","License Fees with Emp","[ID] <= " & [License Fees with Emp].[ID] & " and [License Fees with Emp].[Employee #] = " & [License Fees with Emp].[Employee #] & " and [License Fees with Emp].[Type Numb] = " & [License Fees with Emp].[Type Numb] & " and [License Fees with Emp].[LFT Numb] = " & [License Fees with Emp].[LFT Numb])).
There's an additional field called "Hold", that contains either the number's 1 or 2. In another field I just want to subtotal my amounts by all records that contain only number 1, by the group [Type Numb].
If anyone has a better way I'm all ears.
Thanks
Cum Tot after Sale: Val(DSum("[License Fees with Emp].[Commissionable LF]","License Fees with Emp","[ID] <= " & [License Fees with Emp].[ID] & " and [License Fees with Emp].[Employee #] = " & [License Fees with Emp].[Employee #] & " and [License Fees with Emp].[Type Numb] = " & [License Fees with Emp].[Type Numb] & " and [License Fees with Emp].[LFT Numb] = " & [License Fees with Emp].[LFT Numb])).
There's an additional field called "Hold", that contains either the number's 1 or 2. In another field I just want to subtotal my amounts by all records that contain only number 1, by the group [Type Numb].
If anyone has a better way I'm all ears.
Thanks