I'm looking for suggestions for what event I should use to trigger the following procedure:
Private Sub Net_Calc()
[Net_Remaining] = [Over_Under_Audit_Findings] + Nz([Cash_Flow].Form![Transaction_Subtotal], 0)
End Sub
[Over_Under_Audit_Findings] & [Net_Remaining] are on my main form. [Transaction_Subtotal] is on a subform, which is attached to the main form.
[Net_Remaining] is bound textbox and I would like to keep it bound so that I can retain the realtime updates without running a query. I've tested the logic of the calculations through an unbound textbox and the calculations work fine. This leads me to believe that I'm not using the proper event to trigger the calculations.
I've tried [Net_Remaining] BeforeUpdate & AfterUpdate without success. I've tried to use LostFocus on the field in the Subform that should trigger the event with moderate success. The problem that I have in the subform is that tabbing out of the field doesn't trigger the event. Only left-clicking in the field, then left-clicking in another field would actually trigger the event.
Thanks in advance for your suggestions!
Private Sub Net_Calc()
[Net_Remaining] = [Over_Under_Audit_Findings] + Nz([Cash_Flow].Form![Transaction_Subtotal], 0)
End Sub
[Over_Under_Audit_Findings] & [Net_Remaining] are on my main form. [Transaction_Subtotal] is on a subform, which is attached to the main form.
[Net_Remaining] is bound textbox and I would like to keep it bound so that I can retain the realtime updates without running a query. I've tested the logic of the calculations through an unbound textbox and the calculations work fine. This leads me to believe that I'm not using the proper event to trigger the calculations.
I've tried [Net_Remaining] BeforeUpdate & AfterUpdate without success. I've tried to use LostFocus on the field in the Subform that should trigger the event with moderate success. The problem that I have in the subform is that tabbing out of the field doesn't trigger the event. Only left-clicking in the field, then left-clicking in another field would actually trigger the event.
Thanks in advance for your suggestions!