Q
quaddawg via AccessMonster.com
I have a subform with a field for which I set a validation rule and
validation text (on the form, not table). When I enter data that violates
the rule in that field I cannot procede, but no message (default nor one with
my language) displays.
As a workaround of sorts, I cribbed this code from a post:
Private Sub End_Date_LostFocus()
If Me.StartDate > Me.ThirdRenewal Then
MsgBox "End Date must be later than Start Date!", vbQuestion + vbOK,
"Wrong End Date"
End If
End Sub
This gives me the error message when the rule is violated, however it is post
hoc and does not prevent the user from entering the violative datum.
So,
1. Any ideas why the Validation Text will not display?
2. What might be a better way of handling this issue so that the wrong data
is prevented and an appropriate error message is displayed?
Thanks for your help!
validation text (on the form, not table). When I enter data that violates
the rule in that field I cannot procede, but no message (default nor one with
my language) displays.
As a workaround of sorts, I cribbed this code from a post:
Private Sub End_Date_LostFocus()
If Me.StartDate > Me.ThirdRenewal Then
MsgBox "End Date must be later than Start Date!", vbQuestion + vbOK,
"Wrong End Date"
End If
End Sub
This gives me the error message when the rule is violated, however it is post
hoc and does not prevent the user from entering the violative datum.
So,
1. Any ideas why the Validation Text will not display?
2. What might be a better way of handling this issue so that the wrong data
is prevented and an appropriate error message is displayed?
Thanks for your help!