请问transactsql()该如何使用?
Dim rs As ADODB.RecordsetIf Trim(Text1.Text = "") Then
MsgBox "没有用户名,请重新输入!", vbOKCancel + vbExclamation, "警告"
Text1.SetFocus
Else
sql = "select * from userinfo where username='" & Text1.Text & "'"
Set rs = transactsql(sql)
If iflag = 1 Then
If rs.EOF = True Then
MsgBox "没有这个户名,请重新输入!", vbOKCancel + vbExclamation, "警告"
Text1.SetFocus
Else
If Trim(rs.fields(1)) = Trim(Text2.Text) Then
rs.Close
Me.Hide
gusername = Trim(Text1.Text)
MDIForm1.Show
Unload Me
Else
MsgBox "密码不正确,请重新输入!", vbOKOnly + vbExclamation, "警告"
Text2.SetFocus
Text2.Text = ""
pwd = pwd + 1
End If
End If
Else
Unload Me
End If
是否用的正确?
为什么会提示未安装isam呢?