运行时错误94 [英] Run Time error 94
本文介绍了运行时错误94的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
  pass = DLookup(" [Password]"," tblUser"," [Password] ='"& Me.txtPasssword.Value&"'")
pass = DLookup("[Password]", "tblUser", "[Password] = '" & Me.txtPasssword.Value & "'")
我面对这段代码有问题。 pass变量是String类型。
I face problem on this code. The pass variable is String type.
推荐答案
将传递声明为Variant而不是String。然后,您可以使用
Declare pass as a Variant instead of as a String. You can then use code like
等代码 如果IsNull(通过)则为
MsgBox"密码不正确"
否则
MsgBox"密码正确"
结束如果
If IsNull(pass) Then
MsgBox "Password incorrect"
Else
MsgBox "Password correct"
End If
这篇关于运行时错误94的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文