hi! we are having trouble in our program. every time we click login button it will proceed to the next form even if it doesn't have anything on it. can you please help us regarding this problem
Private Sub Command1_Click()
Adodc1.RecordSource = " select * from login where username = ' " + Text1.Text + "'"
On Error Resume Next
If (Adodc1.Recordset.EOF = False) Then
If (Text2.Text = Adodc1.Recordset.Fields("password")) Then
MsgBox "log in success"
Unload Me
Form2.Show
Else
MsgBox "invalid password"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End If
Else
MsgBox "invalid username"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End If
End Sub