Private Sub Command1_Click()
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim str As String
Dim sSQL As String
Set db = New ADODB.Connection
Set rs = New ADODB.Recordset
str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\仓库程序\data.mdb;Persist Security Info=False"
db.ConnectionString = str
db.Open
rs.CursorLocation = adUseClient
If Text3.Text = Text4.Text Then
sSQL = "select * from 管理员 where MANAGER_ID = '%" + Text1.Text + "%' AND MANAGER_PASS='" + Text2.Text + "'"
Else
MsgBox "两次输入的密码不相同,请重新输入!"
End If
If rs.Fields("MANAGER_ID") = Text1.Text And rs.Fields("MANAGER_PASS") = Text2.Text Then
rs.Fields("MANAGER_PASS") = Text3.Text
rs.Update
End If
rs.Close
Set rs = Nothing
End Sub
大家帮忙看看这有什么问题?
提示错误是项目在所需的名称或序数中未被发现
大家帮帮我啊~!!!````````