Hi All,
I written this
Parameters!AgreementTypeRule.Value = "test,test2"
=IIF(Split(Parameters!AgreementTypeRule.Value,",").Length=2, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*"),"Aqua",""),IIF(Splt(Parameters!AgreementTypeRule.Value,",").Length=3, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*") or(Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(2)+"*"),"Aqua",""),""))
No background returned.
=IIF(Split(Parameters!AgreementTypeRule.Value,",").Length=2, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*"),"Aqua",""),"")
Then background return Aqua if matched with the above keyword.
Let me know why the IIF not work. 1st I need to check the Split(Parameters!AgreementTypeRule.Value,",").Length, If meet then only run the particular code else it'll skip. However I believe the caused of not working is due to (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(2)+"*") not exist.
Please advise.
Thanks
Regards,
Micheale