Mile-O-Phile,
I used your method instead because it's a password field that I'm working on, the only thing is that when I enter the value I can't back space it or edit it unless I close the form and open it again, any suggestions. Thanks.
Mile-O-Phile,
Sorry if I'm bothering you, but there is one bug with the code, the first time you enter a number, you get an error message, this happens on the first key press, then if i click end on the error message window it will work again.