P pickslides Red Sails In The Sunset Local time Today, 23:27 Joined Apr 29, 2008 Messages 76 Jun 24, 2014 #1 Been trying to crack this one for a while. DB attached, trying to write a query that outputs. Group By State, Count of Type A, Count of Type B, Total Count of Type, Count of comments. Thanks MQ.. Attachments Database2.accdb Database2.accdb 444 KB · Views: 85
Been trying to crack this one for a while. DB attached, trying to write a query that outputs. Group By State, Count of Type A, Count of Type B, Total Count of Type, Count of comments. Thanks MQ..
P plog Banishment Pending Local time Today, 06:27 Joined May 11, 2011 Messages 12,055 Jun 25, 2014 #2 Here's what you would need for 'CountOfA': CountOfA: Iif([Complaint_Type]="A", 1,0) Make that an aggregate query (Click the Sigma/Summation symbol) then change the 'Group By' to Sum. What that will do is count the record as 1 if it is A and 0 if not. Then it sums up all those 1's and 0's. Make similar fields for your other types.
Here's what you would need for 'CountOfA': CountOfA: Iif([Complaint_Type]="A", 1,0) Make that an aggregate query (Click the Sigma/Summation symbol) then change the 'Group By' to Sum. What that will do is count the record as 1 if it is A and 0 if not. Then it sums up all those 1's and 0's. Make similar fields for your other types.