Morning All,
I would like to set a limit to a text box so that end user only can enter numbers from 1-32 and not more.
I have setup a validation on keypress to make it only work with numbers i.e digits and nothing else however I am not sure how to set it to only allow 1-32 numbers.
I tried
Dim i as integer
for i=1to32
if textbox2.text>i then
msgbox("not allowed")
end if
next
this however didn't work. I don't think I even wrote it right or not.
Could you please put me to the right direction.
Many thanks
Regards
Jay