Hey guys, could you help me with a problem? I'm trying to make a VB program that generates lottery numbers. The thing is, it has a PIN textbox for when the right PIN is introduced, the button for randomize numbers becomes active. But when I delete the PIN, the program gives me Error 13 Type Mismatch: I think that if you delete the PIN, the program can't compare because the textbox has Nil value. Code: Private Sub PIN_Change() [COLOR="Lime"]If PIN = 5454 Then [/COLOR]Command1.Visible = True _ Else: Command1.Visible = False Label1 = Nil Label2 = Nil Label3 = Nil Label4 = Nil Label5 = Nil Label6 = Nil Label7 = Nil End Sub The green text is where VB says where is the error. By the way, the DataFormat of the textbox is in Number. Someone can help me out?? I started to learn VB by my own iniciative.