失踪的操作员在哪里?
代码:
If Nz(DLookup("Email", "Employees", "Email=" & Me![Email]), "") <> "" Then
correo = DLookup("Email", "Employees", "Email=" & Me![Email])
答案 0 :(得分:0)
电子邮件将成为一个字符串,因此您的语法应为:
If Nz(DLookup("Email", "Employees", "Email= '" & Me.Email & "'"), "") <> "" Then
correo = DLookup("Email", "Employees", "Email= '" & Me.Email & "'")
请注意,您要查找的电子邮件地址周围添加了单引号。
答案 1 :(得分:-1)
两件事。首先,它在VBA中是Else If
,而不是End If
(没有空格)。其次,您在If
块的末尾有一个额外的Private Sub ResetButton_Click()
Dim correo As String
If Nz(Me.Email, "") = "" Then
MsgBox "Email Empty. Please Enter a Valid Email Address.", vbInformation, "Email Empty"
Me.Email.SetFocus
ElseIf Nz(DLookup("Email", "Employees", "Email= '" & Me.Email & "'", "") <> "" Then
correo = DLookup("Email", "Employees", "Email= '" & Me.Email & "'")
End If
If correo <> Me.Email Then
MsgBox "Wrong Email Address. Please Use a Correct Email Address.", vbCritical, "Wrong Email Address"
Me.Email.SetFocus
Else
DoCmd.Close
DoCmd.OpenForm "UserVerificationPasswordReset"
End If
End Sub
。见下文:
<div class="row" ng-repeat="image in images">
<div class="col col-25">
<img ng-src="{{image.src}}" width="100%" />
</div>
</div>