Can anyone see what is wrong with this UPDATE query:
UPDATE Year3TempDistressFactors SET Year3TempDistressFactors.3Score = IIf(IsNull(Yr1GeneralFundRevenue+Yr1GeneralFundExpenditure),Null,IIf(Yr1GeneralFundRevenue-(Yr1GeneralFundExpenditure/Yr1GeneralFundRevenue)<-0.01,0,1));
When this runs against existing data, all the score come back as 1 when some should come through as zero. My math is not taking place.
UPDATE Year3TempDistressFactors SET Year3TempDistressFactors.3Score = IIf(IsNull(Yr1GeneralFundRevenue+Yr1GeneralFundExpenditure),Null,IIf(Yr1GeneralFundRevenue-(Yr1GeneralFundExpenditure/Yr1GeneralFundRevenue)<-0.01,0,1));
When this runs against existing data, all the score come back as 1 when some should come through as zero. My math is not taking place.