Hi, I need to convert this really long IIF statement into a VB Module...Can anyone help set me on the right path.... thanks in advance
Jesse
Status: IIf([CurrentStatus] Like "DEN*" Or [CurrentStatus] Like "*with*" Or [CurrentStatus] Like "CANC*" Or [CurrentStatus] Like "*resc*","Please contact your loan officer.",IIf([CurrentStatus] Like "APPROVED","Your loan has been approved, a commitment outlining terms and conditions is being prepared.",IIf([CurrentStatus] Like "CLO*" Or [CurrentStatus] Like "SOLD" Or [CurrentStatus] Like "SHIP*" Or [CurrentStatus] Like "PORTFOLIO" Or [CurrentStatus] Like "*xf*","Your loan is closed.",IIf([CurrentStatus] Like "rt cmt*","Thank you for returning your commitment. Your loan officer will contact you shortly.",IIf([CurrentStatus] Like "OK*","The underwriting conditions are cleared. Please contact your loan officer for the next steps in scheduling your closing.",IIf([CurrentStatus] Like "ST*" Or [CurrentStatus] Like "cmT*","Your commitment has been sent.",IIf([CurrentStatus] Like "nds*" Or [CurrentStatus] Like "sub*" Or [CurrentStatus] Like "in*","Application in process","Status Not Defined"))))))
Jesse
Status: IIf([CurrentStatus] Like "DEN*" Or [CurrentStatus] Like "*with*" Or [CurrentStatus] Like "CANC*" Or [CurrentStatus] Like "*resc*","Please contact your loan officer.",IIf([CurrentStatus] Like "APPROVED","Your loan has been approved, a commitment outlining terms and conditions is being prepared.",IIf([CurrentStatus] Like "CLO*" Or [CurrentStatus] Like "SOLD" Or [CurrentStatus] Like "SHIP*" Or [CurrentStatus] Like "PORTFOLIO" Or [CurrentStatus] Like "*xf*","Your loan is closed.",IIf([CurrentStatus] Like "rt cmt*","Thank you for returning your commitment. Your loan officer will contact you shortly.",IIf([CurrentStatus] Like "OK*","The underwriting conditions are cleared. Please contact your loan officer for the next steps in scheduling your closing.",IIf([CurrentStatus] Like "ST*" Or [CurrentStatus] Like "cmT*","Your commitment has been sent.",IIf([CurrentStatus] Like "nds*" Or [CurrentStatus] Like "sub*" Or [CurrentStatus] Like "in*","Application in process","Status Not Defined"))))))