[Help]Textbox
ok this not working i want it where if the code isnt in the textbox then it wont open the form i want it to an if it is right then form should show but it keeps saying invaild as i gotdont got the code in an its wrong help plz



Dim randomnmbr0 as integer Dim randomnmbr1 as integer Dim randomnmbr2 as integer Randomnmbr0 = GeneratedRandomNumberCode '..etc
if textbox1.text = randomnmbr0 Then Else End if
If Textbox1.text = Textbox1.text Then 'code else 'code end if
If 1 = 2 Then
MsgBox("Register Successful!")
Else
MsgBox("I'm 100% Sure you got this messagebox!")
End if


