Thanks for the reply!Unfortunately that did not work. I found a work around, doing (ContractInfo.AgreementDetails.Org.rawValue >= 6000 && ContractInfo.AgreementDetails.Org.rawValue <=6999). I would still like to know why the substring command wasnt working correctly. I have tried many different var...