I need to sum the amounts in the formula record, subtract the total from 100, and update the last record with the difference.
Here is how the "Select" query looks.
FormCode/FormCode.ProdCode/% to use/MastForm.ProdCode/FoCoID
407 ID-900 0.19 IDT-11 4367
407 ID-40 0.3843 IDT-11 4368
407 ID-300 0.16 IDT-11 4369
407 ID-970 0.02 IDT-11 4370
407 ID-1200 0 IDT-11 4371
(counter)
I need to update "ID-1200" with difference of 100 minus the sum of the other ingredients. When done ID-1200 should equal .2457
Here is the SQL statement from my "Select" query.
SELECT DISTINCTROW FormulaComposition.FormulaCode, FormulaComposition.ProductCode, FormulaComposition.PercentageToUse, MasterFormulas.ProductCode, FormulaComposition.FormulaComponentID
FROM MasterFormulas INNER JOIN FormulaComposition ON MasterFormulas.FormulaCode = FormulaComposition.FormulaCode
WHERE ((FormulaComposition.FormulaCode=407));
Now I would like to just change my "Select" query to an "Update" query and do the calculation for "ID-1200" in the "Update to" field.
I am new to Access and using an old Access 2.0 program, there is very little out on the web for 2.0 "How to's".
I have over 685 formuls that need to be updated in this way and the igredients vary from 2-10 items.
Any help would be greatly appreciated.
Thank you for your time in this matter.
Here is how the "Select" query looks.
FormCode/FormCode.ProdCode/% to use/MastForm.ProdCode/FoCoID
407 ID-900 0.19 IDT-11 4367
407 ID-40 0.3843 IDT-11 4368
407 ID-300 0.16 IDT-11 4369
407 ID-970 0.02 IDT-11 4370
407 ID-1200 0 IDT-11 4371
(counter)
I need to update "ID-1200" with difference of 100 minus the sum of the other ingredients. When done ID-1200 should equal .2457
Here is the SQL statement from my "Select" query.
SELECT DISTINCTROW FormulaComposition.FormulaCode, FormulaComposition.ProductCode, FormulaComposition.PercentageToUse, MasterFormulas.ProductCode, FormulaComposition.FormulaComponentID
FROM MasterFormulas INNER JOIN FormulaComposition ON MasterFormulas.FormulaCode = FormulaComposition.FormulaCode
WHERE ((FormulaComposition.FormulaCode=407));
Now I would like to just change my "Select" query to an "Update" query and do the calculation for "ID-1200" in the "Update to" field.
I am new to Access and using an old Access 2.0 program, there is very little out on the web for 2.0 "How to's".
I have over 685 formuls that need to be updated in this way and the igredients vary from 2-10 items.
Any help would be greatly appreciated.
Thank you for your time in this matter.