Thread
:
vb help
View Single Post
vb help
Reply
Posted 2006-01-11, 03:57 PM
this my code
Private Sub cmdLogon_Click()
If txtName.Text = vbNullString Then
MsgBox "you must enter your name", vbOKOnly + vbInformation, " Name Error"
End If
If txtPassword.Text = vbNullString Then
MsgBox "you must enter your password", vbOKOnly + vbInformation, " Password Error"
End If
If txtPassword.Text = "Password" Or txtPassword.Text = "password" Then
MsgBox "logon complete", vbOKOnly
End If
If txtPassword.Text <> "Password" Or txtPassword.Text <> "password" Then
MsgBox " invalid password ", vbOKOnly + vbInformation, "invalid password"
End If
End Sub
when i put the correct password it said login but then invalid password how to fix this.
Profile
PM
WWW
Search
osmoses-jones