Regular Expression (as detailed in VBHelp) will probably provide the easiest answer for checking after the event.
If you are checking a typed entry in a textbox, then validate each keystroke in the keypress event by comparing KeyAscii with allowed values - you'll still need to check in the validate event in case the user cut&pasted
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'