J
Jack
I wold like to add a calculated field to a master/sub form.
Jack said:I wold like to add a calculated field to a master/sub form. I would like to put a calculated field on the master that will give me the sum of Amount due and Amount received fields on the sub form. And will update when I enter a new or change a record on the sub form.
I wold like to add a calculated field to a master/sub form.
Beetle said:Put text boxes in the footer of your *subform* that
will total the values you want using a Control Source
like =Sum([SomeField]). Make them hidden if you
don't want the users to see them there.
Then put text boxes in your main form which will
refer to the text boxes in your subforms footer. Use
a Control Source like;
=[SubformControl].Form![txtSubTotal]
Where SubformControl is the name of the window that
holds the subform and txtSubTotal is the name of the
text box in the subforms footer. Keep in mind that the name
of the SubformControl may not necessarily be the same as
the name of the subform itself.
--
_________
Sean Bailey