First of all WHICH FIELD is yes or no? Is that field a text field, a yes/no
field, or a date field, or a number field?
To trouble shoot this, break the query down to just one YES/No field and see if
you get what you are expecting. Once you have done that then you can expand
your query and add in more fields.
Open a query
Select Totals from the View menu
Enter the following in two field cells.
Field: DateByMonth: FORMAT([Date of Decision/Interview],"mmmm yyyy")
Total: Group By
Field: CountOfInitialInterview: Abs(Sum([Initial Interview]))
Total: Expression
Does that return what you want? If not, what does it return? Does it return an
error or some other message? What is the message? We cannot see what you are
getting, you can. So please help us help you, but telling us what you do see.
Also, don't forget to tell us what type of field [Initial Interview] is? If it
is not a yes/no field, try
Abs(Sum([initial interview]="Yes"))
Sorry to be a pain about this but I get an error message
from this statement. I am prompted to enter a query
restriction. Yes, Y, and True elicit no responses.
Is there a way to do this from design view instead of in
the SQL writing mode? Sorry to be picky but I need a
query to disregard any NO statements.
-Katt
-----Original Message-----
Pardon me for jumping in.
REVISED QUERY: This assumes that when you are counting you want to count "yes"
values in the field AND that the field is a Yes/No type (boolean) field. I've
also aliased the table name as I to make it easier to type the revision
SELECT Format(.[Date of decision/interview],'mmmm yyyy')
AS [Date of decision/interview By Month],
.[Form type],
Abs(Sum(.[Initial Interview])) AS [CountOfInitial Interview],
Abs(Sum(.[Initial Interview No Show])) AS
[CountOfInitial Interview No Show],
Abs(Sum(.[No Show Rescheduled]) )AS [CountOfNo Show Rescheduled],
Abs(Sum(.Approve)) AS CountOfApprove,
Abs(Sum(.[Deny - Other]) )AS [CountOfDeny - Other],
Abs(Sum(.[Deny - Fraud])) AS [CountOfDeny - Fraud],
Abs(Sum(.[Continued?]) )AS [CountOfContinued?],
Abs(Sum([Initial entry].[Continued Grant]) )AS [CountOfContinued Grant],
Abs(Sum(.[Continued Deny - Other])) AS
[CountOfContinued Deny - Other],
Abs(Sum(.[Continued Deny - Fraud])) AS
[CountOfContinued Deny - Fraud]
FROM [Initial entry] As I
GROUP BY Format(.[Date of decision/interview],'mmmm yyyy'),
.[Form type],
Year(.[Date of decision/interview]) *12+
DatePart('m',.[Date of decision/interview])-1
ORDER BY Format(.[Date of decision/interview],'mmmm yyyy'),
.[Form type];
.