S
solsen via AccessMonster.com
Hi,
I am trying to calculate a running total on an order field using subqueries
but every time I run the code below Access shuts down. Any idea as to why
this is happening?
SELECT a.CUSTOMER_N, a.MATERIAL_N, a.FISCAL_PER, a.SumOfTotal_QU, a.
SumOfNET_REVENU, a.[Period Calc], a.Orders
(SELECT Sum([Orders])
FROM [SGI_1_Pinnacle Sales] AS B
WHERE a.CUSTOMER_N = b.CUSTOMER_N
AND a.FISCAL_PER<= b.FISCAL_PER) as RunSum
FROM [SGI_1_Pinnacle Sales] as A;
I am trying to calculate a running total on an order field using subqueries
but every time I run the code below Access shuts down. Any idea as to why
this is happening?
SELECT a.CUSTOMER_N, a.MATERIAL_N, a.FISCAL_PER, a.SumOfTotal_QU, a.
SumOfNET_REVENU, a.[Period Calc], a.Orders
(SELECT Sum([Orders])
FROM [SGI_1_Pinnacle Sales] AS B
WHERE a.CUSTOMER_N = b.CUSTOMER_N
AND a.FISCAL_PER<= b.FISCAL_PER) as RunSum
FROM [SGI_1_Pinnacle Sales] as A;