A
Alberta Rose
I get an error message saying that my string is too complex. Can anyone see
a way to streamline it??
=IIf(IsNull([costcode]) Or IsNull([costtype]),0,IIf([costcode]="013210" And
[costtype]="05320",[txtEstimatedCost]/[txtCraftLabEst],IIf([costcode]="020110"
And
[costtype]="05320",[txtEstimatedCost]/[txtFirewatchLabEst],IIf([costcode]="064201"
And
[costtype]="05320",[txtEstimatedCost]/[txtCraftSuprLabEst],IIf([costcode]="061301"
And
[costtype]="05320",[txtEstimatedCost]/[txtQAQCSuprvLabEst],IIf([costcode]="061101"
And
[costtype]="05310",[txtEstimatedCost]/[txtSiteTeamLabEst],IIf([costcode]="031101"
And
[costtype]="05110",[txtEstimatedCost]/[txtOfficeTeamLabEst],IIf([costcode]="042211"
And
[costtype]="05110",[txtEstimatedCost]/[txtEngLabEst],IIf([costcode]="045311"
And
[costtype]="05130",[txtEstimatedCost]/[txtThirdPartyLabEst],IIf([costcode]="032101"
And [costtype]="05110",[txtEstimatedCost]/[txtProcurementLabEst],
IIf([costcode]="061103" And
[costtype]="05110",[txtEstimatedCost]/[txtClericalLabEst],
IIf([costcode]="032101" And
[costtype]="05130",[txtEstimatedCost]/[txt3rdPtyProcLabEst] ,
IIf([costcode]="045311" And
[costtype]="05110",[txtEstimatedCost]/[txtEngMgmtLabEst],
IIf([costcode]="061201" And
[costtype]="05320",[txtEstimatedCost]/[txtHSSEEst], IIf([costcode]="064101"
And [costtype]="05320",[txtEstimatedCost]/[txtSiteConMgmtEst],
Null)))))))))))))))
Thanks, Laurie
a way to streamline it??
=IIf(IsNull([costcode]) Or IsNull([costtype]),0,IIf([costcode]="013210" And
[costtype]="05320",[txtEstimatedCost]/[txtCraftLabEst],IIf([costcode]="020110"
And
[costtype]="05320",[txtEstimatedCost]/[txtFirewatchLabEst],IIf([costcode]="064201"
And
[costtype]="05320",[txtEstimatedCost]/[txtCraftSuprLabEst],IIf([costcode]="061301"
And
[costtype]="05320",[txtEstimatedCost]/[txtQAQCSuprvLabEst],IIf([costcode]="061101"
And
[costtype]="05310",[txtEstimatedCost]/[txtSiteTeamLabEst],IIf([costcode]="031101"
And
[costtype]="05110",[txtEstimatedCost]/[txtOfficeTeamLabEst],IIf([costcode]="042211"
And
[costtype]="05110",[txtEstimatedCost]/[txtEngLabEst],IIf([costcode]="045311"
And
[costtype]="05130",[txtEstimatedCost]/[txtThirdPartyLabEst],IIf([costcode]="032101"
And [costtype]="05110",[txtEstimatedCost]/[txtProcurementLabEst],
IIf([costcode]="061103" And
[costtype]="05110",[txtEstimatedCost]/[txtClericalLabEst],
IIf([costcode]="032101" And
[costtype]="05130",[txtEstimatedCost]/[txt3rdPtyProcLabEst] ,
IIf([costcode]="045311" And
[costtype]="05110",[txtEstimatedCost]/[txtEngMgmtLabEst],
IIf([costcode]="061201" And
[costtype]="05320",[txtEstimatedCost]/[txtHSSEEst], IIf([costcode]="064101"
And [costtype]="05320",[txtEstimatedCost]/[txtSiteConMgmtEst],
Null)))))))))))))))
Thanks, Laurie