Private Sub Command1_Click()
Data1.Recordset.FindFirst "username = '" & tuser.Text & "' and password = '" & tpass.Text & "' "
If Data1.Recordset.NoMatch Then
MsgBox "kamu salah masukin username atau password"
tuser.Text = ""
tpass.Text = ""
tuser.SetFocus
Else
Me.Hide
user.Show
End If
End Sub
Posting Komentar