I still don't think that this will satisfy the original requirement that
both if statements be evaluated. In yours, if:
oEMail = ""
then iCall_Type will not be tested for 9.
I think he just needs the 2 if statements, one after the other.
His original post showed him ussing:
If sToEMail = "" Then
sTo = "DT" & CStr(lDistrictNbr)"@microsoft.com"
Else
sTo = sToEMail
End If
If iCall_Type = 9 Then
sTo = sCmd
End if
This seems to be correct to me. The question now becomes, which if is more
important than the other. If he has one variable that will be changed by
one of 2 other variable values, then is it more important that sTo be sCmd
when iCall_Type is 9 or not. The order of the if statements may need to be
reversed.
"Cor" <no*@non.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
I did not understand the question, now I saw the message from Scott I
understand it.
If sToEMail = "" Then
sTo = "DT" & CStr(lDistrictNbr)"@microsoft.com"
Else
If iCall_Type = 9 Then
sTo = sCmd
else
sTo = sToEMail
End if
///
Cor