mcelligott
Programmer
Ok, I am admit it. I am totally stumpted.
I have a report which lists all complaints received for a user defined period of time. For each complaint there can be an infinite number of employees involved. I therefore have a subreport that lists all the employees involved for each complaint (and it does this part correctly). The report and subreport have are linked by the complaint #.
In the subreport, for each employee involved I need to also display the final result of their part of the complaint. I need to list if their part is founded or unfounded, what type of error that employee made in the complaint and what discipline each employee may have received as a result of the error. While I do also have other fields that are displayed, they are not as critical as the ones listed above.
The problem: The subreport does not always display what is in those fields for each employee invovled. It only displays the information for a small sub-set of them. I have been unable to determine a rhime or reason behind it. I have the following SQL behind it:
SELECT [Complaints - Employees Involved].[Complaint #], [Last Name] & ', ' & [First Name] AS Employee, [Complaints - Employees Involved].[Results Of Investigation], [Complaints - Employees Involved].[Sitting on], [Complaints - Employees Involved].[Over 8 Hours], [Complaints - Employees Involved].[Day of Wheel], [Complaints - Employees Involved].[Other Comments], [Employee History Table].[Error Types], [Employee History Table].[Entry Type], [Employees table].[Adj Hire Date], [Employees table].Title
FROM ([Complaints - Employees Involved] LEFT JOIN [Employee History Table] ON ([Complaints - Employees Involved].[Complaint #] = [Employee History Table].[Complaint #]) AND ([Complaints - Employees Involved].IBM = [Employee History Table].IBM)) INNER JOIN [Employees table] ON [Complaints - Employees Involved].IBM = [Employees table].IBM;
I would appreciate any suggestions anyone has. I really need to get this report to work.
Thanks in advance,
Bob
I have a report which lists all complaints received for a user defined period of time. For each complaint there can be an infinite number of employees involved. I therefore have a subreport that lists all the employees involved for each complaint (and it does this part correctly). The report and subreport have are linked by the complaint #.
In the subreport, for each employee involved I need to also display the final result of their part of the complaint. I need to list if their part is founded or unfounded, what type of error that employee made in the complaint and what discipline each employee may have received as a result of the error. While I do also have other fields that are displayed, they are not as critical as the ones listed above.
The problem: The subreport does not always display what is in those fields for each employee invovled. It only displays the information for a small sub-set of them. I have been unable to determine a rhime or reason behind it. I have the following SQL behind it:
SELECT [Complaints - Employees Involved].[Complaint #], [Last Name] & ', ' & [First Name] AS Employee, [Complaints - Employees Involved].[Results Of Investigation], [Complaints - Employees Involved].[Sitting on], [Complaints - Employees Involved].[Over 8 Hours], [Complaints - Employees Involved].[Day of Wheel], [Complaints - Employees Involved].[Other Comments], [Employee History Table].[Error Types], [Employee History Table].[Entry Type], [Employees table].[Adj Hire Date], [Employees table].Title
FROM ([Complaints - Employees Involved] LEFT JOIN [Employee History Table] ON ([Complaints - Employees Involved].[Complaint #] = [Employee History Table].[Complaint #]) AND ([Complaints - Employees Involved].IBM = [Employee History Table].IBM)) INNER JOIN [Employees table] ON [Complaints - Employees Involved].IBM = [Employees table].IBM;
I would appreciate any suggestions anyone has. I really need to get this report to work.
Thanks in advance,
Bob