I need to make a running sum in a query but it's not working. I have three fields that it needs to look at.
EMPLID_Sort (Text Field)
Sort_Order (Number Field)
T_Pd (Currency Field).
I have the query already set up to show only one EMPLID_Sort so I don't need to group anything. I just need it to give me the running sum of T_PD based on the current Sort_Order and any Sort_Order prior to it. This is how I wrote the expression DSum("[Days]","Pay_Table_T
emp_Table"
,"[Sort_Or
der] <= " & [Sort_Order]) but I just get an the error message "Undefined function 'DSum' in expression.
Example:
EMPLID_Sort Sort_Order T_Pd Running Total
0084765-POC 2007101 $35.00 $35.00
0084765-POC 2007102 $350.00 385.00
0084765-POC 2007103 $350.00 735.00
0084765-POC 2007201 $303.33 1,038.33
0084765-POC 2008101 $46.67 1,085.00
0084765-POC 2009111 $0.00 1,085.00
0084765-POC 2009112 $0.00 1,085.00
Start Free Trial