Access_Person
Registered User.
- Local time
- Yesterday, 22:36
- Joined
- Aug 18, 2004
- Messages
- 14
In my database when a combo box is changed to a certain value a validation rule is supposed to get turned on in an adjacent text box.
My code works but it lets me tab into the now restricted text box (it's empty) and tab out of it without getting an error message. The only way I can trigger the validation rule is if I write somethig in the text box and then erase it to make it blank. Is it just me or aren't validation rules supposed to be enforced when the user tabs out of a control too? What can I do?
Here's the code:

My code works but it lets me tab into the now restricted text box (it's empty) and tab out of it without getting an error message. The only way I can trigger the validation rule is if I write somethig in the text box and then erase it to make it blank. Is it just me or aren't validation rules supposed to be enforced when the user tabs out of a control too? What can I do?
Here's the code:
Code:
Private Sub Resume_PASS_Change()
If Resume_PASS = 0 Then
Forms!Sole_Addition_Form!txtResumeComments.ValidationRule = "Is Not Null"
Else
Forms!Sole_Addition_Form!txtResumeComments.ValidationRule = ""
End If
End Sub
