子程序或者函数未定义

[复制链接]
查看11 | 回复1 | 2008-6-23 13:13:50 | 显示全部楼层 |阅读模式
Dim mrc As ADODB.Recordset
txtsql = "select * from oper where 用户名='" & Trim$(Text(0).Text) & "'" & "And 号令='" & Trim$(Text1(1).Text) + "'"
Set mrc = exesql(txtsql)——————这里报子程序或者函数未定义
If mrc.RecordCount = 0 Then
n = n + 1
If n < 3 Then
MsgBox "没有这个用户,继续簦录", vbOKOnly + vbExclamation, "信息提示"
Text1(0).Text = ""
Text1(1).Text = ""
Text1(0).SetFocus
Else
MsgBox "已经簦录三次,退出系统", vbOKOnly + vbExclamation, "信息提示"
mrc.Close
Unload Me
End If
Else
userlevel = Trim(mrc.Fields("级别"))
mrc.Close
Unload Me
menu.Show
End If

回复

使用道具 举报

千问 | 2008-6-23 13:13:50 | 显示全部楼层
你报错的那个地方,我猜不是系统函数,是自定义的函数。它的作用是执行 sql语句,返回一个记录集。完毕
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行