L
LMB
Hello Everyone,
I posted a question related to this in the getting started group because I
thought I needed to make a calculation in the query to base reports on but I
have been playing around in the reports and hope I can get my task
accomplished in the report. It took me about 2 hours to get a simple query
made and about 10 minutes to get this report made to look exactly like what
I want except for the calculation.
My report gets it's data from a query. The sql from the query is below,
just in case it helps as I am not very good at explaining my databases yet.
SELECT qryEmpNameLastFirst.Employee, tblAudits.AuditName,
tblAuditItems.AItemName, tblEmpAuditDetails.EADetailFilledOut,
tblEmpAuditDetails.EADetailComments
FROM (qryEmpNameLastFirst INNER JOIN tblEmployeeAudits ON
qryEmpNameLastFirst.strEmployeeID = tblEmployeeAudits.EmpAudit_fkEmpID)
INNER JOIN (tblAudits INNER JOIN (tblAuditItems INNER JOIN
tblEmpAuditDetails ON tblAuditItems.AItemID =
tblEmpAuditDetails.EADetail_fkAItemID) ON tblAudits.AuditID =
tblAuditItems.AItem_fkAuditID) ON tblEmployeeAudits.EmpAuditID =
tblEmpAuditDetails.EADetail_fkEmpAuditID
ORDER BY qryEmpNameLastFirst.Employee, tblAudits.AuditName,
tblAuditItems.AItemName;
I have grouped my report by EmployeeName, then AuditName, then AuditItem.
On the report, everything is looking great except my EADetailFilledOut.
Under each AuditItem I have 4 numbers because 4 items have been documented.
The numbers are -1 which = Yes, 0 =No, and 2 = N/A. I would like to report
the percent of time that the employee got a Yes, or No...The N/As I don't
want to count for or against in the percentage calculation. Can I add a
control that can take the totals from each item and give me a percentage of
Y vs N?
So if the employee has this set of numbers under an item
-1
-1
0
0
2
The control I make will count all the numbers except the 2 and the returned
number will be 50%.
Thanks,
Linda
I posted a question related to this in the getting started group because I
thought I needed to make a calculation in the query to base reports on but I
have been playing around in the reports and hope I can get my task
accomplished in the report. It took me about 2 hours to get a simple query
made and about 10 minutes to get this report made to look exactly like what
I want except for the calculation.
My report gets it's data from a query. The sql from the query is below,
just in case it helps as I am not very good at explaining my databases yet.
SELECT qryEmpNameLastFirst.Employee, tblAudits.AuditName,
tblAuditItems.AItemName, tblEmpAuditDetails.EADetailFilledOut,
tblEmpAuditDetails.EADetailComments
FROM (qryEmpNameLastFirst INNER JOIN tblEmployeeAudits ON
qryEmpNameLastFirst.strEmployeeID = tblEmployeeAudits.EmpAudit_fkEmpID)
INNER JOIN (tblAudits INNER JOIN (tblAuditItems INNER JOIN
tblEmpAuditDetails ON tblAuditItems.AItemID =
tblEmpAuditDetails.EADetail_fkAItemID) ON tblAudits.AuditID =
tblAuditItems.AItem_fkAuditID) ON tblEmployeeAudits.EmpAuditID =
tblEmpAuditDetails.EADetail_fkEmpAuditID
ORDER BY qryEmpNameLastFirst.Employee, tblAudits.AuditName,
tblAuditItems.AItemName;
I have grouped my report by EmployeeName, then AuditName, then AuditItem.
On the report, everything is looking great except my EADetailFilledOut.
Under each AuditItem I have 4 numbers because 4 items have been documented.
The numbers are -1 which = Yes, 0 =No, and 2 = N/A. I would like to report
the percent of time that the employee got a Yes, or No...The N/As I don't
want to count for or against in the percentage calculation. Can I add a
control that can take the totals from each item and give me a percentage of
Y vs N?
So if the employee has this set of numbers under an item
-1
-1
0
0
2
The control I make will count all the numbers except the 2 and the returned
number will be 50%.
Thanks,
Linda