Quote 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:
  1. Private Sub Command3_Click()
  2. Dim pass1 As Variant
  3. Dim pass2 As Variant
  4.  
  5. pass1 = "Jorn"
  6. pass2 = "Jorn"
  7.  
  8. If frmTestForm.pass1.Text = pass1 & frmTestForm.pass2.Text = pass2 Then
  9. MsgBox "Correct"
  10. Else
  11. MsgBox "Hahah"
  12.  
  13. End If
  14. End Sub