|
-
Jul 23rd, 2008, 07:21 AM
#1
Thread Starter
New Member
[RESOLVED] Quick Question
When creating an If...Then statement, how do I make more than one if?
For example
If TextBox5.Text = "1" OR "2" Then
Do something
End If
I need to make it so it will work if the textbox has 1 or 2. For right now, I can only get it for one number, or I will get an error that says the number 2 cannot be converted to boolean.
Thanks for your help.
-
Jul 23rd, 2008, 07:25 AM
#2
Re: Quick Question
if textbox5.text = "1" or textbox5.text="2" then...
Or
if textbox5.text = "1" orelse textbox5.text="2" then...
-tg
-
Jul 23rd, 2008, 07:29 AM
#3
Thread Starter
New Member
Re: Quick Question
Thank you so much. This is just what I needed.
I'm new to this...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|