SELECT [Error Detail tbl].[Person Creating Error], Sum(([AIS omitted]+[AIS
incorrect]+[Amendment]+[AWD misc]+[AWD sources]+[AWD Pol Print]+[AWD Pol
Print exam]+[AWD transaction not created]+[AWD Surf for Sources]+[AWD Notes
Unclear]+[AWD Notes Not Followed]+[AWD Push Case]+[AWD CSD]+[Procedural
Rules]+[System Entry]+[Underwriting]+[EnCorr letter]+[Agent]+[Companion Not
Issued]+[MVR/IR]+[Pull Labs]+[Reissue]+[Reprint]+[Update Mainframe]+[Wrong
Policy Scheme]+[Replacement]+[Requirement]+[Entry Incorrect]+[Other])*-1) AS
Total
FROM [Error Detail tbl] INNER JOIN [Employee Team tbl] ON [Error Detail
tbl].[Person Creating Error] = [Employee Team tbl].Name
GROUP BY [Error Detail tbl].[Person Creating Error], [Employee Team
tbl].Team, [Error Detail tbl].Date
HAVING ((([Employee Team tbl].Team)=[Forms]![QR Reports form]![Team
Selection IDP]) AND (([Error Detail tbl].Date) Between ([Forms]![QR Reports
form]![IAG Start Date]) And ([Forms]![QR Reports form]![IAG End Date])))
ORDER BY [Error Detail tbl].[Person Creating Error];
Sorry I am very new at this and what I know I have self taught so I do not
know all the ends and outs of the product. But here is what I have so far in
the SQL view. Thanks in advance for any help.
Well, this will give you a Sum grouped by [Person Creating Error],
[Team] and [Date]. This will give you as many lines as there are Teams
and Dates for each person. If you don't want to group by Team or Date,
change the Group By on each of these fields to WHERE. The resulting
SQL will be more like
SELECT [Error Detail tbl].[Person Creating Error],
Sum(([AIS omitted]+[AIS incorrect]+[Amendment]+[AWD misc]+[AWD
sources]+[AWD Pol Print]+[AWD Pol Print exam]+[AWD transaction not
created]+[AWD Surf for Sources]+[AWD Notes Unclear]+[AWD Notes Not
Followed]+[AWD Push Case]+[AWD CSD]+[Procedural Rules]+[System
Entry]+[Underwriting]+[EnCorr letter]+[Agent]+[Companion Not
Issued]+[MVR/IR]+[Pull Labs]+[Reissue]+[Reprint]+[Update
Mainframe]+[Wrong Policy Scheme]+[Replacement]+[Requirement]+[Entry
Incorrect]+[Other])*-1) AS Total
FROM [Error Detail tbl] INNER JOIN [Employee Team tbl] ON [Error
Detail tbl].[Person Creating Error] = [Employee Team tbl].Name
GROUP BY [Error Detail tbl].[Person Creating Error]
WHERE ((([Employee Team tbl].Team)=[Forms]![QR Reports form]![Team
Selection IDP]) AND (([Error Detail tbl].Date) Between ([Forms]![QR
Reports
form]![IAG Start Date]) And ([Forms]![QR Reports form]![IAG End
Date])))
ORDER BY [Error Detail tbl].[Person Creating Error];
I can see several problems with your table design. For one thing, Date
is a reserved word (fot the built in Date() function), and Access very
likely will get confused; worse, you're "committing spreadsheet" by
putting DATA in fieldnames.
John W. Vinson [MVP]