When you say one text box with the sum of both fields do you mean you want
the sum of all amounts due + the sum of all amounts received? I'll assume so,
but if not hopefully the following will give you the general idea and you'll
be able to modify it to suit your requirements.
First you need to add a text box to the subform, txtTotalAmount say, with a
ControlSource property of:
=Sum([Amount Due])+Sum([AmountReceived])
Set its Visible property to False (No) to hide it.
Add another text box to the parent form with a ContolSource of:
=[YourSubformControl].Form.[txtTotalAmount]
where YourSubformControl is the name of the control in the parent form which
houses the subform, not the name of its underlying form object; unless both
have the same name of course. It should recalculate automatically, but if
not put the following in the subform's AfterUpdate event procedure:
Me.Parent.Recalc
Ken Sheridan
Stafford, England