C
CanaryCrazy
I need a message box to pop up on a form if the user selects an entry from a
combo box (control source is a field called "Requestor") that does NOT
contain either the letters "FD" or "WM" in the field AND the amount in a
different field called "Amount" is 250000 or more.
The Requestor field is a list of names, and within the field is the "FD" or
"WM" letters to designate some of the folks as working for one group
another.... others on the list may not have any such designation and THOSE
ARE THE GUYS I'm interested in. It is the folks who do NOT have the
designation of the group they work for that I need the message box to appear
for.
I have this code working fine as far as not firing the message box for
anyone who has "FD" in the field, BUT I cannot figure out how to not have it
pop for the ones that have "WM" in the field.
I currently have it written as:
Private Sub Combo100_AfterUpdate()
If Me.Amount >= 250000 And InStr(Me.Requestor, "FD") = 0 Then MsgBox "This
loan should be going through Funding Desk.", vbExclamation, "Funding Desk
Warning"
End Sub
Any help is appreciated.
combo box (control source is a field called "Requestor") that does NOT
contain either the letters "FD" or "WM" in the field AND the amount in a
different field called "Amount" is 250000 or more.
The Requestor field is a list of names, and within the field is the "FD" or
"WM" letters to designate some of the folks as working for one group
another.... others on the list may not have any such designation and THOSE
ARE THE GUYS I'm interested in. It is the folks who do NOT have the
designation of the group they work for that I need the message box to appear
for.
I have this code working fine as far as not firing the message box for
anyone who has "FD" in the field, BUT I cannot figure out how to not have it
pop for the ones that have "WM" in the field.
I currently have it written as:
Private Sub Combo100_AfterUpdate()
If Me.Amount >= 250000 And InStr(Me.Requestor, "FD") = 0 Then MsgBox "This
loan should be going through Funding Desk.", vbExclamation, "Funding Desk
Warning"
End Sub
Any help is appreciated.