Office中国论坛/Access中国论坛

标题: 求助啊 看看代码 [打印本页]

作者: shilixi    时间: 2009-6-19 19:11
标题: 求助啊 看看代码
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也出错  谢谢
作者: ui    时间: 2009-6-20 11:02
可能没有引用ado引用




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3