QUOTE(Sonic @ Jul 25 2007, 08:25 PM)

Hello,
I just installed VB6 off a CD of mine and whenever I run code that has an "If statement" in it, the program crashes.
I can make buttons and all, but once I code them I get something like so:
http://img19.imageshack.us/img19/5240/visualbasicop1.jpgAny clue as to why this may be happening?
Thanks
A few questoions:
1) Does the program crash in every single If statement. Like if you had a second text box and just set the text in it instead of a msgbox does this crash?
2) Can you post a picture (or copy the text) of the data the error report contains?
3) Have you tried re-installing VB6?
Hopefully these things will help us diagnose your problem
PS. I can't see anythign wrong with your code (I haven't coded in VB in a while though)