A
Allie
I have a main form and a subform (which is a datasheet)
The main form shows the totals from the subform and the
data is stored in a summary table. The subform shows each
transaction processed by an individual on a particular
date.
As a transaction is added or deleted to/from the sub form
the totals on the main form are updated. The problem is
when a transaction is changed. When the transaction is
changed it adds the value of the new transaction to the
totals on the main form and does not delete the old value.
How do I correct this?
To add to the totals on the main form I am using the
following in the after-update event of the transaction on
the subform:
[Forms]![frmMainForm]![txtQQ] = [Forms]![frmMainForm!
[txtQQ] + 1
thanks
The main form shows the totals from the subform and the
data is stored in a summary table. The subform shows each
transaction processed by an individual on a particular
date.
As a transaction is added or deleted to/from the sub form
the totals on the main form are updated. The problem is
when a transaction is changed. When the transaction is
changed it adds the value of the new transaction to the
totals on the main form and does not delete the old value.
How do I correct this?
To add to the totals on the main form I am using the
following in the after-update event of the transaction on
the subform:
[Forms]![frmMainForm]![txtQQ] = [Forms]![frmMainForm!
[txtQQ] + 1
thanks