integritycare
Technical User
Hello,
Just wanted to know how I can modify this query so that the running sum will show the sum total per date selected., instead of showing the total for the all the table data.
Many thanks
Integrity
Just wanted to know how I can modify this query so that the running sum will show the sum total per date selected., instead of showing the total for the all the table data.
Code:
SELECT T1.BankR, T1.DateRcvd, T1.BrokerStaffID, T1.TDeposit, T1.TDebit, T1.ItemName, T1.ChqNo, T1.CHK, T1.AccountNo, T1.AcctName, (SELECT Sum(TDeposit)-Sum(TDebit)
FROM tblBankRegister
WHERE tblBankRegister.BankR <= T1.BankR) AS Balance
FROM tblBankRegister AS T1
WHERE (((T1.DateRcvd) Between [forms]![frmBanking]![txtStartDate] And [forms]![frmBanking]![txtEndDate]))
ORDER BY T1.BankR;
Many thanks
Integrity