Hi everyone:
I have an if then statement that looks like this:
If DLookup("[account]", "tblFAP_Avoidance", "[account] =" & "'" & Forms![frmFAP_Avoidance]!account & "'"
Then
msgbox "x", vbYesNo, "Admin" = vbYes
ElseIf vbYes Then
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
End if
I keep getting a Type Mismatch
And when it does work it does the same for Yes or No.
It ends the statement.Help Anyone
Thanks
Z
I have an if then statement that looks like this:
If DLookup("[account]", "tblFAP_Avoidance", "[account] =" & "'" & Forms![frmFAP_Avoidance]!account & "'"
msgbox "x", vbYesNo, "Admin" = vbYes
ElseIf vbYes Then
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
End if
I keep getting a Type Mismatch
And when it does work it does the same for Yes or No.
It ends the statement.Help Anyone
Thanks
Z