PARAMETERS StartDate DateTime, EndDate DateTime;
SELECT DIQA.[Batch Number ID], DIQA.[Prepper Name], DIQA.[Date of Audit], DIQA.[Document Type], DIQA.[Document Count], Count([Audit Errors].[Prepper Error]) AS [CountOfPrepper Error], [Audit Errors].[Prepper Error]
FROM DIQA RIGHT JOIN [Audit...