O
Ollie*99
I created a simple table, one field is "Total Cost", there are a number of
other component costs fields that need to be calculated as a percentage of
the Total Costs.
I then made a form based on the table, and entered the formula ie.
=([Total_Cost]/100)*40 into the control source for the relevant field's text
box.
The form works. If I call up an existing record, it correctly shows the
percentage of the total cost for each component on the form.
However, it never puts the calculated value back into the table! It will
correctly enter all the other fields into the table, but leaves the costs
fields blank.
Of course, to put in the calculation (expression) I changed the control
source on the form field from the name of the field in the table, to the
expression.
How do I get it to enter the calculated value into the table?
other component costs fields that need to be calculated as a percentage of
the Total Costs.
I then made a form based on the table, and entered the formula ie.
=([Total_Cost]/100)*40 into the control source for the relevant field's text
box.
The form works. If I call up an existing record, it correctly shows the
percentage of the total cost for each component on the form.
However, it never puts the calculated value back into the table! It will
correctly enter all the other fields into the table, but leaves the costs
fields blank.
Of course, to put in the calculation (expression) I changed the control
source on the form field from the name of the field in the table, to the
expression.
How do I get it to enter the calculated value into the table?