John,
The continous form shows one record (row) per section. The total is a
field, per section that needs approval (flag) before it can be updated. I've
tried creating an if statement ( if approval = "Y" then sum(a+b)), but it
keeps updating all records... not just the record that I am on.
What can I do to have it only update the record that I am on?
I'd suggest basing the subform on a Query, and doing the calculation in a
calculated field *in the query*, rather than in an unbound textbox on the
form. You're seeing the calculation on all the records because the calculation
isn't actually being updated anywhere - it's just *DISPLAYED* on the form. And
since the textbox is unbound, there's really only one textbox, displayed many
times; when you change its value, all of the instances of the textbox show the
change.
Just edit the form's recordsource query and add a new value in a vacant Field
cell such as:
RowTotal: IIF([Approval] = "Y", [A] +
, Null)
and display this field on the form. It will be calculated per-row, not
repeated.