Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query Not Working Yet

Status
Not open for further replies.

goslincm

MIS
May 23, 2006
292
US
Good morning,I thought I had this query working but something is wrong yet and I cannot see what it is.

UPDATE Year3TempDistressFactors SET Year3TempDistressFactors.5Score = IIf(isnull(Yr1GeneralFundRevenue) Or isnull(Yr1GeneralFundExpenditure),Null,IIf(Yr1GeneralFundRevenue-(Yr1GeneralFundExpenditure/Yr1GeneralFundRevenue)<-0.01,1,0));


Its not returning the expected score correctly yet.
 
OK ... but what is wrong exactly?

What values do [blue]Yr1GeneralFundRevenue[/blue] and [blue]Yr1GeneralFundExpenditure[/blue] have in the record and what is [blue]5Score[/blue] getting as a value?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top