Thanks to tek-tips I can now do a running total in a query. Now I need a second running total that displays the previous day.
Here is the code for the running total.
SELECT ControlDates.BalanceDate,
Sum(Deposit-Withdrawal)
FROM Transactions, ControlDates
WHERE TransDate<=BalanceDate
GROUP BY ControlDates.BalanceDate;
I want to use the same code in a new query that displays yesterday. This new query will be yesterdays balance where the example query is today's balance. I'm sure there is a simple line of code, but i don't know it.
Thank you for your help.
Here is the code for the running total.
SELECT ControlDates.BalanceDate,
Sum(Deposit-Withdrawal)
FROM Transactions, ControlDates
WHERE TransDate<=BalanceDate
GROUP BY ControlDates.BalanceDate;
I want to use the same code in a new query that displays yesterday. This new query will be yesterdays balance where the example query is today's balance. I'm sure there is a simple line of code, but i don't know it.
Thank you for your help.