Start the program, and just put any value in the second textbox.
What I want to do is evaluate for each of the conditions;
No text box filled in; A value in TextBox1 Only; and a value in TextBox2 Only.
If neither TextBox is filled in then show the message box stating same and drop to the next If statement.
If there is a only value in TextBox1, do something. If there is only a value
in TextBox2 then do something else. An Error occurs if only txt2 has a value
in it.
Not for me it doesn't. What error are you getting?
EDIT :- I hate to bang on about this but just saying "It doesn't work", or "I get an error" really doesn't give any useful information to indicate what the problem might be
How could you expect clear answers when you don't give clear informations ? You don't tell exactly what you want to do and you don't tell what kind of error you get.
Thanks to all for your replies, I apoligize, it works for me also, I was confusing
this with another program that I was developing, sorry and thanks again.