Hopefully someone can help me. This thing is driving me crazy, I know it's possible I just can't wrap my access beginner head around it.
I'm going to copy/paste from my Experts Exchange post.
I'm creating an Access database to calculate excipient composition per serving of a finished product.
Here's how it works...
A finished product is made up of several raw materials
In order to calculate excipient composition of a raw material, you need a spec sheet which gives you guaranteed percentages. For example, let's say we have a raw material called Rice Bran and the spec sheet says for every 1mg of this material, 12% of it contains protein. The specifications for a raw material typically don't change, therefor I created a form for the user to create a "raw material template" (to basically mimic spec sheets) which allows you to select excipients and enter their percentage. Screenshot attached.
That's the easy part. Now the difficult part is using these "raw material templates" in calculations. Now I need to create a second form which will allow the user to insert a "raw material template" and enter serving size per raw material (this is a variable) then multiply that with the percentages from the template. Finally I need to total the results for each excipient. I attached a spreadsheet to explain what I'm trying to accomplish. I didn't put formulas in the cells so you can see the percents.
Calculation sample -
Sample calculation - Google Docs
Database download -
MEGAUPLOAD - The leading online storage and file delivery service