Private Sub cmd_ok_click()
Adodc1.Recordset.Find "用户名='" & Text1.Text & "'"
If Adodc1.Recordset.EOF Then
MsgBox "用户名不存在", vbOKOnly, "提示"
ElseIf (Adodc1.Recordset.Fields("口令") <> Text2.Text) Then
MsgBox "密码不正确", , "提示"
numlogin = numlogin + 1
Else
MsgBox "登录成功", , "提示"
username = Text1.Text
Unload Me
menu.Show
End If
End Sub
米琪卡哇伊
慕妹3146593