E
EMess
I have a report that lists the Incidents for each member of our company. The
SQL for the report is
SELECT tblIncidents.IncidentNumber, tblIncidents.IncidentDate, tblMembers.
MemberNumber, tblMembers.MemberLName, tblMembers.MemberFName, tblMembers.
MemberID
FROM tblMembers INNER JOIN (tblIncidents INNER JOIN tjxMemberIncidents ON
tblIncidents.IncidentID = tjxMemberIncidents.IncidentID) ON tblMembers.
MemberID = tjxMemberIncidents.MemberID
WHERE (((tblIncidents.IncidentDate) Between [Enter Start Date] And [Enter End
Date]));
I have another field on the report that was created using:
=Count(tblIncidents!IncidentNumber)
I want to sort on that county but I understand I cannot. So, following some
posts on this board, I created a query that is:
SELECT tblIncidents.IncidentId, Count(*) AS TotalInc
FROM tblIncidents
GROUP BY tblIncidents.incidentid;
and tried to incorpoate that into my report as part of the record source.
But I just cannot get it to work despite all my efforts. I am new to all of
this and very confused. Your hlep is appreciated.
SQL for the report is
SELECT tblIncidents.IncidentNumber, tblIncidents.IncidentDate, tblMembers.
MemberNumber, tblMembers.MemberLName, tblMembers.MemberFName, tblMembers.
MemberID
FROM tblMembers INNER JOIN (tblIncidents INNER JOIN tjxMemberIncidents ON
tblIncidents.IncidentID = tjxMemberIncidents.IncidentID) ON tblMembers.
MemberID = tjxMemberIncidents.MemberID
WHERE (((tblIncidents.IncidentDate) Between [Enter Start Date] And [Enter End
Date]));
I have another field on the report that was created using:
=Count(tblIncidents!IncidentNumber)
I want to sort on that county but I understand I cannot. So, following some
posts on this board, I created a query that is:
SELECT tblIncidents.IncidentId, Count(*) AS TotalInc
FROM tblIncidents
GROUP BY tblIncidents.incidentid;
and tried to incorpoate that into my report as part of the record source.
But I just cannot get it to work despite all my efforts. I am new to all of
this and very confused. Your hlep is appreciated.