If I put a watch in my code to see if my variables are updating it updates the text field perfectly. If I remove the watch and let the code run the field does not update. I think what's happening is the fields for ExtAmt and ProAmt are not updated before the code runs. Any suggestions on where to put the code - I've tried datachange on the form and update on individual text boxes.

the ExtAmt and ProAmt are both coming from subforms on the mainform.

Dim ExtAmt As Integer
Dim ProAmt As Integer
Dim Subttl As Integer
Dim GrdTtl As Integer
Me.txttest = Null
If IsNull(Me.txtTtlPro) = False Then


ProAmt = Me.txtTtlPro
Else: ProAmt = 0
End If
If IsNull(Me.txtTtlExtra) = False Then
ExtAmt = Me.txtTtlExtra
Else: ExtAmt = 0
End If

GrdTtl = Me.txtSubTtl
Me.txttest.Value = GrdTtl + ExtAmt + ProAmt