G
Guest
I've read all the posts regarding similar problems and consulted the ms
support /kb/208714; all very informative. However, I still can't get it to
work! Any help appreciated. I have a table with fields Index, ItemNumber
and CumQtyCalc. I want to add a field to calculate a running sum by item in
a query based on this table. I can get a running sum for all items by using:
RunningTotalA: DSum("CumQtyCalc","tblTempTable","[Index] <= " & [Index] & "")
However, when I try to do by item using the following, it doesn't work:
RunningTotalB: DSum("CumQtyCalc","tblTempTable","[Index] & [ItemNumber] <=
'" & [Index] & [ItemNumber] & "'")
Could anyone point out my mistake? Thanks in advance.
support /kb/208714; all very informative. However, I still can't get it to
work! Any help appreciated. I have a table with fields Index, ItemNumber
and CumQtyCalc. I want to add a field to calculate a running sum by item in
a query based on this table. I can get a running sum for all items by using:
RunningTotalA: DSum("CumQtyCalc","tblTempTable","[Index] <= " & [Index] & "")
However, when I try to do by item using the following, it doesn't work:
RunningTotalB: DSum("CumQtyCalc","tblTempTable","[Index] & [ItemNumber] <=
'" & [Index] & [ItemNumber] & "'")
Could anyone point out my mistake? Thanks in advance.