M
Matt Reed
Hello,
I have been trying to modify the sample as shown in 290136 "How to Create
Running Totals in a Query". Added a column for ADay
DatePart('d',[OrderDate]) and modified the RunTot expression as follows.
RunTot: DSum("Freight","Orders","DatePart('d',[OrderDate])<=" & [ADay] &
"And DatePart'm',[OrderDate])<=" & [AMonth] & " And DatePart('yyyy',
[OrderDate])<=" & [AYear] & "")
I get a daily total, but it starts over at zero everymonth. Where I only
want it to start at zero every year.
Any suggestions on what to change?
Thanks for looking and thanks in advance for any help you can give me.
Matt
I have been trying to modify the sample as shown in 290136 "How to Create
Running Totals in a Query". Added a column for ADay
DatePart('d',[OrderDate]) and modified the RunTot expression as follows.
RunTot: DSum("Freight","Orders","DatePart('d',[OrderDate])<=" & [ADay] &
"And DatePart'm',[OrderDate])<=" & [AMonth] & " And DatePart('yyyy',
[OrderDate])<=" & [AYear] & "")
I get a daily total, but it starts over at zero everymonth. Where I only
want it to start at zero every year.
Any suggestions on what to change?
Thanks for looking and thanks in advance for any help you can give me.
Matt