如何验证输入的数据与数据库里某个字段的值是否相同
Private Sub cmdOK_Click()
If text1.Text = Connect = " access" & DatabaseName = "E:\用户名密码.mdb" & RecordSource = " pw" & DataSource = "Data1" & DataField = "用户名" Then
Form1.Show
Me.Hide
Else
MsgBox "用户名错误"
End If
End Sub
我用的是DATA控件,
总是提示我用户名错误
请问高手,该如何修改