Assuming the field is named "EnteredNumber", the following code will display the message "The Current Value is Greater than Two!" when the value is greater than 2 and the user moves out of the field:
Private Sub EnteredNumber_LostFocus()
If [EnteredNumber].Value > 2 Then
Dim Msg As String
Msg = "The Current Value is Greater than Two!"
MsgBox Msg, vbOKOnly + vbInformation
End If
End Sub
Hope this helps.
Missinglinq "It's got to be the going,
not the getting there that's good!"
-Harry Chapin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.