I am trying to create a query that will give me a running total by product grouping and serial number. I currently have these three fields Products, Serial Number and Order Quantity. I've played with IIf and DSum but don't get what I am looking for.
This is what I get.
Products Serial Number Order Quantity Running Total
00053 0001 2 3
00053 0002 1 3
00047 0001 3 4
00047 0002 1 4
00026 0001 5 10
00026 0002 3 10
00026 0003 2 10
This is what I am looking for....
Products Serial Number Order Quantity Running Total
00053 0001 2 2
00053 0002 1 3
00047 0001 3 3
00047 0002 1 4
00026 0001 5 5
00026 0002 3 8
00026 0003 2 10
This is what I get.
Products Serial Number Order Quantity Running Total
00053 0001 2 3
00053 0002 1 3
00047 0001 3 4
00047 0002 1 4
00026 0001 5 10
00026 0002 3 10
00026 0003 2 10
This is what I am looking for....
Products Serial Number Order Quantity Running Total
00053 0001 2 2
00053 0002 1 3
00047 0001 3 3
00047 0002 1 4
00026 0001 5 5
00026 0002 3 8
00026 0003 2 10