The query is the recordsource for the report.
Here is the SQL for the query. It may be note worthy that 2 of the fields have criteria that is coming from a dialogue form.
SELECT Error_Entry.TM, Error_Entry.Shift, Error_Entry.ErrorDept, Error_Entry.DateError, Error_Entry.DateDiscovery...