I have one subform that lists detail records and two other subforms that are
essentially totals. One total is of all time for the detail records and the
other is a selective total of detail records. If I change the detail record
from yes to no (or vice versa) I want the selective total to update.
Hrm. Rather than a separate Subform, I'd suggest putting a Textbox on
the subform footer with either a Sum() expression or a call to the
DSum() function. For instance, you could have a calculated field in
the subform's Query defined as
SelectivePart: IIf([YesNoField], [NumberField], 0)
If you put a textbox in the form footer with a control source
=Sum([SelectivePart])
it will show the sum of the values of NumberField for which the same
record's YesNoField is true.
Where do I find the subform control (I keep reading about this but can't for
the life of me find it)?
It's the forest right near all those trees... <bg>
It's the "box" on the main form which contains the subform. If you
mouseclick on its edge with the Properties window visible, you'll see
that it has properties such as Master Link Field and Child Link Field.
You can also select it from the list of controls in the combo box at
the upper left next to the default toolbar.
John W. Vinson[MVP]