Hello. I have this table
Model year MonthYear_text CountOfID_W XXX 2014 08 1 XXX 2014 08 9 XXX 2014 08 11 YYY 2016 01 2
I need to have a cumulative total by model as, for example
Model year MonthYear_text Expr1 XXX 2014 08 1 XXX 2014 08 10 XXX 2014 08 21 YYY 2016 01 2
But I am not able to set up the right formula. Not sure which kind of criteria I should add.
I am trying with
SELECT [table].[Model year], [table].MonthYear_text, DSum("[CountOfID_W]","[table]","[MonthYear_text]<= [MonthYear_text]" & " And [Model year]=" & '[Model year]' & "") AS Expr1
FROM table
ORDER BY [table].[Model year], [table].MonthYear_text;
Anybody could give me suggestions?
Thank you
F