A
Andy
Hi
I Have following select Query in Query table
PreciousQtyselect Sum([SC2Day'sQty] FROM DWPRecord AS A Where
A.[ItemNo]<=DWPRecord.[ItemNo] AND A.[SCNo]=DWPRecord.[SCNo] AND
[A].[Date]<=[DWPRecord].[Date]) This query works perfect. but report does
not allow me to have multiple level grouping!!!!!
So I use PreviousQtySUM("[SC2Day'sQty]","DWPRecord","[ItemNo]<="
&DWPRecord.[ItemID] AND "[SCNo]=" &DWPRecord.[SCNo] AND " [Date]<=" &
DWPRecord.[Date]) which should give same results as select Query.
But it doesn't !!!!!! gives overall total of SC2Day'sQty field . ( Not Item
wise,SubCode wise and Date wise)
Where am I doing Mistake in DSUM() ?
ANDY
I Have following select Query in Query table
PreciousQtyselect Sum([SC2Day'sQty] FROM DWPRecord AS A Where
A.[ItemNo]<=DWPRecord.[ItemNo] AND A.[SCNo]=DWPRecord.[SCNo] AND
[A].[Date]<=[DWPRecord].[Date]) This query works perfect. but report does
not allow me to have multiple level grouping!!!!!
So I use PreviousQtySUM("[SC2Day'sQty]","DWPRecord","[ItemNo]<="
&DWPRecord.[ItemID] AND "[SCNo]=" &DWPRecord.[SCNo] AND " [Date]<=" &
DWPRecord.[Date]) which should give same results as select Query.
But it doesn't !!!!!! gives overall total of SC2Day'sQty field . ( Not Item
wise,SubCode wise and Date wise)
Where am I doing Mistake in DSUM() ?
ANDY