Hi,
When using DSUM in query to get running total, it works.
Problem is without dsum getting error.
Error is 'Tried to execute a query that does not include the specified expression 'Total_Amt' as part of Aggregate function'
SQL having error:
[Question: what is missing or is it always, in ACCESS require DSUM to get running total].
Looking output as YearMonth, Total, RunningTotal
Appreciate your help.
Thanks,
TechIT
When using DSUM in query to get running total, it works.
Problem is without dsum getting error.
Error is 'Tried to execute a query that does not include the specified expression 'Total_Amt' as part of Aggregate function'
SQL having error:
Code:
select a.YrMth, sum(a.Total_Amt) as aTotalAmt,
(select sum(b.Total_Amt) as bTotalAmt
from TableInv b
where b.Total_Amt <= a.Total_Amt) as rTotalAmt
from TablInv a
group by a.YrMth;
[Question: what is missing or is it always, in ACCESS require DSUM to get running total].
Looking output as YearMonth, Total, RunningTotal
Appreciate your help.
Thanks,
TechIT