>Greetings all.
>
>A textbox on my form needs to accept only certain alpha/numeric values. If the first entry is a '0' (zero), the TextBox.Value would need to be completed thus: '0EMPT-Y'. Otherwise, the characters will all need to be uppercase alpha like this: 'CAGUK-M' Using ! in Format property and InputMask = 'XXXXX-X', I can get the UPPERCASE and the hyphen in position six, but I need to limit the characters in positions 2-5, and 7 to alpha. I've tried to use KeyPress, but I'm afraid I'm doing something amiss, "'cause it ain't doin' what I want!'" ;-).
>
>Any suggestions would be appreciated.
>
>Thanks,
Hi Tim,
Use letter 'A' in the position of the InputMask where you want alpha characters only
InputMask = 'XAAAA-A'
See InputMask Property in the help for more details.
--sb--