Aug 23, 2002 #1 Pyramus Programmer Dec 19, 2001 237 GB I just want to check a value entered into a text box is a number (no letters in it) and is between 0 and 200. Any clues?
I just want to check a value entered into a text box is a number (no letters in it) and is between 0 and 200. Any clues?
Aug 23, 2002 #2 RalphBrown Programmer Dec 5, 2001 20 GB Try: If IsNumeric(Mytextbox.text) and val(Mytextbox.text) >= 0 and val(Mytextbox.text) <= 0 then Ralph Upvote 0 Downvote
Try: If IsNumeric(Mytextbox.text) and val(Mytextbox.text) >= 0 and val(Mytextbox.text) <= 0 then Ralph
Aug 23, 2002 #3 cdukes Programmer Aug 6, 1999 286 FR try something like the following: Function CheckValue as boolean dim retval as boolean retval = false if IsNumeric(txtBox.text) then iF cint(txtbox.text) > 0 and cint(txtBox.text) < 200 then retval = true end if end if CheckValue = RetVal end function Hope this helps, Chris Dukes Upvote 0 Downvote
try something like the following: Function CheckValue as boolean dim retval as boolean retval = false if IsNumeric(txtBox.text) then iF cint(txtbox.text) > 0 and cint(txtBox.text) < 200 then retval = true end if end if CheckValue = RetVal end function Hope this helps, Chris Dukes