G
Guest
I am trying to run a query where I can determine when an employee gets more
than 2 complaints within a certain date range.
The fields in my query are:
IncidentDate
EmployeeNumber
In the INCIDENTDATE column, I set the criteria as:
Between [Forms]!frmEmployeeComplaintDialogBox]![BeginningDate] And
[Forms]!frmEmployeeComplaintDialogBox]![EndingDate]
In the EMPLOYEENUMBER column, I set the criteria as:
In (SELECT[EmployeeNumber] FROM [tblECDEmployeeInvolved] WHERE
[EmployeeNumber] > 2 GROUP BY [EmployeeNumber] HAVING Count (*) > 2)
I am not getting a correct response. I am showing employees that have two or
more complaints but not just within the specified date range.
Any help would be greatly appreciated.
Thank you in advance for your response.
Rick
than 2 complaints within a certain date range.
The fields in my query are:
IncidentDate
EmployeeNumber
In the INCIDENTDATE column, I set the criteria as:
Between [Forms]!frmEmployeeComplaintDialogBox]![BeginningDate] And
[Forms]!frmEmployeeComplaintDialogBox]![EndingDate]
In the EMPLOYEENUMBER column, I set the criteria as:
In (SELECT[EmployeeNumber] FROM [tblECDEmployeeInvolved] WHERE
[EmployeeNumber] > 2 GROUP BY [EmployeeNumber] HAVING Count (*) > 2)
I am not getting a correct response. I am showing employees that have two or
more complaints but not just within the specified date range.
Any help would be greatly appreciated.
Thank you in advance for your response.
Rick