Code:
TRANSFORM Count([CR_ID])-1 AS R_ID
SELECT [Change Request].Level, Count([Level])-3 AS [HB Totals]
FROM [Change Request]
WHERE ((([Change Request].Sub_No)=0) AND (([Change Request].Date_Closed) Between Date()-7 And Now()) AND (([Change Request].AO_Vote)="Hold" Or ([Change Request].AO_Vote)="Defer" Or ([Change Request].AO_Vote)="Pending"))
GROUP BY [Change Request].Level
PIVOT [Change Request].AO_Vote;
What if another field such as O6_Vote is updated and what I need reported is not in the AO_Vote, but in the O6_Vote field. How can I present this under the AO_Vote field?
Normal case O6_Vote = Null
IIf(Not isNull(O6_Vote), [O6_Vote], [AO_Vote]) in the Criteria?
AO_Vote also has a normal criteria of "Hold" or "Deferred" or "Pending" (They all mean the same to me, but the user wants this diferentiated for some reason)
Do I need to put in a switch statement somehow?