Public Function login() As Boolean
Dim rs As New ADODB.Recordset
Dim strsql As String
strsql = "select * from 密码库 where '" & Me.cbouser & "'"
rs.Open strsql, CurrentProject.connextion
adOpenStatic , adLockReadOnly
If rs.RecordCount > 0 Then
if rs! 密码=me. txtpwd then
login = True
End If
End If
rs.Close
Set rs = Nothing
End Function
adOpenStatic 编译错误 属性的使用无效
if rs! 密码=me. txtpwd then也出错 谢谢