I tried what you explained, but it doesn't really work. I think it is because the "value" I want to validate isn't a number (I should have made that clear before). Will this work with varchar, or only numbers? If it only works with numbers, how can I do this with alphabet characters?