I have three fields that Votes="Defer" and Final_Vote is Null. Votes field is correct.
Code:
TRANSFORM Nz(Count([CR_ID])-1,0) AS CR_IDs
SELECT Chng_ReqQry.Level, Nz(Count([CR_ID])-5,0) AS [HB Totals]
FROM Chng_ReqQry
WHERE (((Chng_ReqQry.Sub_No)=0) AND ((Chng_ReqQry.Date_Closed) Between Now() And Date()-7))
GROUP BY Chng_ReqQry.Level
PIVOT IIf(Not IsNull([Final_Vote]),[Final_Vote],(IIf(Not IsNull([GO_Vote]),[GO_Vote],(IIf(Not IsNull([O6_Vote]),[O6_Vote],[AO_Vote])))));
What am I missing that it will not count the 3 "Defer"? The count Header does not display <>, so I am assuming it is not counting where Final_Vote is null. Could it be that it is not counting that "Level"?
IIf(Not IsNull([Final_Vote]),[Final_Vote],(IIf(Not IsNull([GO_Vote]),[GO_Vote],(IIf(Not IsNull([O6_Vote]),[O6_Vote],[AO_Vote]))))) Gets me the Withdrawn count, recognizes Deferred, but not Defer
IIf(Not IsNull([GO_Vote]),[GO_Vote],(IIf(Not IsNull([O6_Vote]),[O6_Vote],[AO_Vote]))) Recognizes Defer and gets me the Defer count, but not the Withdraw count.