
Originally Posted by
LeeMcCurry
Ok Ill try explain it abit better. Also your code gavio still gives me invalid qualifier
I made 2 variables that both contain the information Jorn(I only really need one avriable actually). If I type jorn in both boxes and then I click a command button I want it to display correcy if they are the same and haha if they are not.
Lee, this works for me in VB6:
VB Code:
Private Sub Command3_Click()
Dim pass1 As Variant
Dim pass2 As Variant
pass1 = "Jorn"
pass2 = "Jorn"
If frmTestForm.pass1.Text = pass1 & frmTestForm.pass2.Text = pass2 Then
MsgBox "Correct"
Else
MsgBox "Hahah"
End If
End Sub