Access 2000 - Formula after running sum calculation

csehz
csehz used Ask the Experts™
on
Dear Experts,

Can you please have a short look on the attached small database, basically its Orders table is created by a make table query for running sum calculation, cumulation the incoming order qtys.

My question would be the next step, in Query_Orders there is a weekly production limit as 200, and the target would be to determine which items can be produced next week. Currently the formula for that is ProduceOrNot: IIf([RunSum]<[WeeklyProd];"Produce";"NotProduce")

But the problem is the 5th record in the query, because the formula give "NotProduce" result of course, however there would be still place to produce not 70 but 60 pcs.

Do you have idea for a formula, which could give "Produce" result there, and only from the 6th record giving "NotProduce".

thanks,


RunSumQuery.zip
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
csehzIT consultant

Author

Commented:
Thanks very much it is very good, I will try to apply on the live database

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial