An easy way is to split your field up, since you are really applying different types of validation to different parts of it.
If you are inputting this value from a form, you can have three unbound fields, one for the first 7 characters, one for the months (Jan-Dec) and one for the last two digits.
The first unbound field can have an input mask of "000000\Z" to force entry of the six digits and to force the seventh character to be "Z".
The second unbound field could be a dropdown supplied with the values of Jan through Dec, or a textbox with the validation rule set only to allow values of Jan through Dec.
The third unbound field could again have an input mask of "00" to force entry of 2 digits.
After Update of this third unbound field you could set the value of the bound field that is designed to hold the whole value (e.g. "123456ZJAN01").
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.