sunset1215
Registered User.
- Local time
- Tomorrow, 01:02
- Joined
- Apr 7, 2011
- Messages
- 46
hi all,
i'm trying to write a code that checks if the field was modified before popping up a message box.
however, i think that the me.dirty is not working here. is it because my [exprTotal] is a calculated field? if it is so, how can i check if the field is modified without me.dirty?
code attached below. any help or advice is greatly appreciated.
i'm trying to write a code that checks if the field was modified before popping up a message box.
however, i think that the me.dirty is not working here. is it because my [exprTotal] is a calculated field? if it is so, how can i check if the field is modified without me.dirty?
code attached below. any help or advice is greatly appreciated.
Code:
Private Sub exprTotal_GotFocus()
If Me.Dirty Then
If Me.exprTotal = 0 Then
GoTo exit_sub
Else
If Me.exprTotal Mod 3 = 0 Then
MsgBox "Msg", vbOKOnly
cmdAddLoyInc.Enabled = True
Else
End If
End If
End If
exit_sub:
End Sub