Hi here how to inform that the user has entered wrong username/invalid
username...
The scenerio is:
userId=txtUser.text
userPwd=txtPwd.text
If myReader.HasRows Then
Do While myReader.Read
If userId = myReader(0) then
if userPwd = myReader(1) Then
Messagebox.show("Welcome")'here it enters if both username & password
is valid
else
Messagebox.show("Wrong password")'here username is correct,but pwd is
not valid
End If
End if
Loop
End if
'Now what in case of invalid username?
username...
The scenerio is:
userId=txtUser.text
userPwd=txtPwd.text
If myReader.HasRows Then
Do While myReader.Read
If userId = myReader(0) then
if userPwd = myReader(1) Then
Messagebox.show("Welcome")'here it enters if both username & password
is valid
else
Messagebox.show("Wrong password")'here username is correct,but pwd is
not valid
End If
End if
Loop
End if
'Now what in case of invalid username?