I need to know how to make one text box and one command button to be able to use 3 differant passwords.

ive tried:

If Pass.Text = "pass1" Then
MsgBox "Right",,"Right"
Else
MsgBox "Wrong",,"Wrong"
End If


If Pass.Text = "pass2" Then
MsgBox "Right",,"Right"
Else
MsgBox "Wrong",,"Wrong"
End If


If Pass.Text = "pass3" Then
MsgBox "Right",,"Right"
Else
MsgBox "Wrong",,"Wrong"

this dosn't work... please help