S
shane
I'm looking to find percent compliance with a query. I want to divide the
count of records that have a response time of 3 days or less by the count of
the records from a given date range. Below is the SQL I've tried to use but
does not work. Thanks in advanced.
(SELECT Count(main.responsesent) AS CountOfresponsesent
FROM main
WHERE (([responsesent]-[dateopen]<=3))
GROUP BY main.class, main.area, main.customerdate
HAVING (((main.class)="Complaint") AND ((main.area)="Poly 6") AND
((main.customerdate) Between [forms]![poly6main]![sdate] And
[forms]![poly6main]![edate])))/
(SELECT Count(main.customerdate) AS CountOfcustomerdate
FROM main
GROUP BY main.class, main.area, main.customerdate
Having (((main.class)="Complaint") AND (((main.are)= "Poly 6") AND
((main.customerdate) Between [forms]![poly6main]![sdate] And
[forms]![poly6main]![edate])));
count of records that have a response time of 3 days or less by the count of
the records from a given date range. Below is the SQL I've tried to use but
does not work. Thanks in advanced.
(SELECT Count(main.responsesent) AS CountOfresponsesent
FROM main
WHERE (([responsesent]-[dateopen]<=3))
GROUP BY main.class, main.area, main.customerdate
HAVING (((main.class)="Complaint") AND ((main.area)="Poly 6") AND
((main.customerdate) Between [forms]![poly6main]![sdate] And
[forms]![poly6main]![edate])))/
(SELECT Count(main.customerdate) AS CountOfcustomerdate
FROM main
GROUP BY main.class, main.area, main.customerdate
Having (((main.class)="Complaint") AND (((main.are)= "Poly 6") AND
((main.customerdate) Between [forms]![poly6main]![sdate] And
[forms]![poly6main]![edate])));