我没怎学过代码想请教,先谢了!
Public Function login() As Boolean
Dim rst As New ADODB.Recordset
Dim strSQL As String
下面句子里的判断为何用员工ID而不是员工姓名?登录窗里不是选的姓名吗?秘密在组合框里吗?
strSQL = "SELECT 员工Id, 密码 FROM 员工表 WHERE 员工Id = " & Me.cboUserName
下面这句又是什么意思?如何与上句联系理解?
rst.Open strSQL, CurrentProject.Connection, adOpenStatic
If rst.RecordCount > 0 Then
If rst("密码") = Me.TxtPwd Then login = True
End If