access2010代码生成器出现错误子过程或函数未定义 20
PrivateSubCMD_Click()IfIsNull(tname)ThenMsgBox"请输入会员ID"ElseIfIsNull(tpassword)ThenMsg...
Private Sub CMD_Click()
If IsNull(tname) Then
MsgBox "请输入会员ID"
ElseIf IsNull(tpassword) Then
MsgBos "请输入密码"
ElseIf tpassword = DLookup("密码", "客户信息表", "会员ID=tname") Then
MsgBox "登录成功!"
DoCmd.Close
DoCmd.OpenForm "客户信息管理系统"
Else
MsgBox "会员ID或密码错误"
tname = Null
tpassword = Null
tname.SetFocus
End If
End Sub 展开
If IsNull(tname) Then
MsgBox "请输入会员ID"
ElseIf IsNull(tpassword) Then
MsgBos "请输入密码"
ElseIf tpassword = DLookup("密码", "客户信息表", "会员ID=tname") Then
MsgBox "登录成功!"
DoCmd.Close
DoCmd.OpenForm "客户信息管理系统"
Else
MsgBox "会员ID或密码错误"
tname = Null
tpassword = Null
tname.SetFocus
End If
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询