I have a subform that "On update" of "Amount" I have Me.Recalc to update the Sum on the Main form. When i tab through the end of the line it goes back to the first record instead of a new record. Thoughts on how to fix this?
If i tab through the record that were entered again, then it advances.I just tried it, still goes back to the first record not a new record.
Can you post a sample db with test data?If i tab through the record that were entered again, then it advances.
HiI have a subform that "On update" of "Amount" I have Me.Recalc to update the Sum on the Main form. When i tab through the end of the line it goes back to the first record instead of a new record. Thoughts on how to fix this?
It totals for me, but when i hit tab at the end of the record, it goes to the first record instead of a new record.
It totaled for me, but when i hit tab as the end of the entry, it goes to the first record instead of a new record.Hi
Same as Gasman - No Errors
When I entered the data suggested it updates the Total Control and also goes to a new record in the subform.
It goes to a new record for me when I forget to select a client in the comboIt totaled for me, but when i hit tab as the end of the entry, it goes to the first record instead of a new record.
Well, that makes 2 of us.It goes to a new record for me when I forget to select a client in the combo
The last one is where I remembered to select a client, then that moves to a new record.
So really have no clue what you have done.
View attachment 119487
Private Sub Ctl_Amount_AfterUpdate()
Me.Dirty = False
End Sub
=Sum(DataField)
only shows the sum of the stored values is the expected behavior. Or am I missing something?=Nz(Sum([Amount]);0)+IIf([Dirty];Nz([Ctl_Amount].[Value];0)-Nz([Ctl_Amount].[OldValue];0);0)