G
Guest
Hello
I am trying to validate the length of a field from within a command button with an If statement before they go onto the next record. The only problem I have is that I have 2 different formats to validate
The first consists of 8 digits (e.g. 12345678) the second 2 letters followed by 9 digits (e.g. MB123456789).
If the field does not follow these formats then I wish for a MsgBox to pop up alerting them of the error. (This part is not a problem
If you have or know the relevant coding I would really appreciate it
Thanks in Advance for any help
Hasa
I am trying to validate the length of a field from within a command button with an If statement before they go onto the next record. The only problem I have is that I have 2 different formats to validate
The first consists of 8 digits (e.g. 12345678) the second 2 letters followed by 9 digits (e.g. MB123456789).
If the field does not follow these formats then I wish for a MsgBox to pop up alerting them of the error. (This part is not a problem
If you have or know the relevant coding I would really appreciate it
Thanks in Advance for any help
Hasa