I am trying to implement a validation rule in a text box named PHOTO_ID_NUMBER which will depend on a value in Combo546,but my vba code for after update is not working.
my code was to check:
If Me.Combo546 selection was "National ID" Then check
If Len(Me.PHOTO_ID_NUMBER) = 13 Or Len(Me.PHOTO_ID_NUMBER)= 17 or else
MsgBox "Enter a value either 13 or 17 digits "
one more thing, the record moves to new one although ( is not null) validation rule is applied in all the field.
thanks in advance for your help.
my code was to check:
If Me.Combo546 selection was "National ID" Then check
If Len(Me.PHOTO_ID_NUMBER) = 13 Or Len(Me.PHOTO_ID_NUMBER)= 17 or else
MsgBox "Enter a value either 13 or 17 digits "
one more thing, the record moves to new one although ( is not null) validation rule is applied in all the field.
thanks in advance for your help.