0

Hello!

I'm trying to find out how to validate input from a textbox, I want to make sure it is an integer within a certain range and that the destination variable is big enough for it. Sorry if this is stupid question, I just can't find anything and it's starting to annoy me!


Thank!

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by tb808kid
0

Hi,

If IsNumeric(Me.txtInput.Text) And Me.txtInput.Text > 10 And Me.txtInput.Text < 100 Then

            'you action

        End If
0

Thanks very much KB, I knew it would something like that, I just don't have any decent recources on VB. This worked flawlessly for my project.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.