I have what I thought was a relatively simple job of creating a report that provided summary information from a database.
The two tables in the database are 1 - Injuries and 2 - Classifications. In the injuries table the fields are InjuryID (Autonumber), ClassID, SectionName and DateofInjury. The fields in Classification table are ClassID(Autonumber) and Class (Text).
My .rpt first groups by sectionName (works Fine) and then by Month + Year (works fine).
I then inserted a crosstab that has columns heading of the classification and a Count of the Injuries.DateofInjury. This all works EXCEPT - that when there are no injuries for that month there is no column.
Eg.
ADMIN
Apr 2003 FAI MTI TOTAL
2 1 3
Mar 2003 FAI TOTAL
3 3
I would like to try and get the report in the format:
ADMIN
Apr 2003 FAI MTI LTI RWI TOTAL
2 1 0 0 3
Mar 2003 FAI MTI LTI RWI TOTAL
3 0 0 0 3
Is someone able to help me please.
The two tables in the database are 1 - Injuries and 2 - Classifications. In the injuries table the fields are InjuryID (Autonumber), ClassID, SectionName and DateofInjury. The fields in Classification table are ClassID(Autonumber) and Class (Text).
My .rpt first groups by sectionName (works Fine) and then by Month + Year (works fine).
I then inserted a crosstab that has columns heading of the classification and a Count of the Injuries.DateofInjury. This all works EXCEPT - that when there are no injuries for that month there is no column.
Eg.
ADMIN
Apr 2003 FAI MTI TOTAL
2 1 3
Mar 2003 FAI TOTAL
3 3
I would like to try and get the report in the format:
ADMIN
Apr 2003 FAI MTI LTI RWI TOTAL
2 1 0 0 3
Mar 2003 FAI MTI LTI RWI TOTAL
3 0 0 0 3
Is someone able to help me please.