It sounds like you don't actually want a "cumulative total", but really just
want to know how much of each product you have on hand, how much you'll need,
and therefore what the left over balance is - unless you want a break down by
work ticket?
Try this - first, get how much of each product you're going to need from the
work ticket table in a query that we'll call [Amount Needed Query]:
SELECT [Work Ticket Table].[Component Item ID], Sum([Work Ticket Table].
[Amount Needed]) AS [SumOfAmount Needed]
FROM [Work Ticket Table]
GROUP BY [Work Ticket Table].[Component Item ID];
This will total how much you need for each Product. Then, you can link this
with your quantity on hand table to get a total for each product:
SELECT [Amount Needed Query].[Component Item ID], [Amount Needed Query].
[SumOfAmount Needed] AS [Amount Needed], [Quantity On Hand Table].[Quantity
On Hand], [Quantity On Hand]-[SumOfAmount Needed] AS Balance
FROM [Amount Needed Query] INNER JOIN [Quantity On Hand Table] ON [Amount
Needed Query].[Component Item ID] = [Quantity On Hand Table].[Component Item
ID];
If you want to break this down by Work Ticket and display a Cumulative
Balance for each ticket, that's a lot harder, and is where that thread I
first mentioned starts to come into things...