integritycare
Technical User
Hi all,
Just a question on running totals in a query
I have used this code below to give a running balance
However I want to add an expense field to this so we have an income and expense running balance.
I have an "expense" field (currency) in the table (Accounts)
I tried this, but did not work..
Regards,
KP
Just a question on running totals in a query
I have used this code below to give a running balance
Code:
RunningBalance: DSum("[Total]","Accounts","[Invoices]<=" & [Invoices])
I have an "expense" field (currency) in the table (Accounts)
I tried this, but did not work..
Code:
RunningBalance: DSum("[Total]","Accounts","[Invoices]<=" & [Invoices])-DSum("[Expense]","Accounts","[Invoices]<=" & [Invoices])
Regards,
KP