Link to home
Start Free TrialLog in
Avatar of grouchyfd
grouchyfdFlag for United States of America

asked on

I need to use an "If...Then" statement to check for text in a textbox. How do I do this?

In my app, I have a search form that will search the database using the text in the textbox. I would like an If...Then...Else statement to check to see if there is text in the textbox or not,
If textbox1. text = ?
Then
Something happens
Else
Messagebox.Show("message", etc.)
I can't seem to figure out what property to use to check if there is text in the textbox.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of j-w-thomas
j-w-thomas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of grouchyfd

ASKER

Thanks, I forgot about using the empty string. Works great with my IF...THEN...ELSEIF...ELSE statements