I have a table that has among others 4 fields that record whether or not an type of incident occured by use of a checkbox (I coulnt use a list because more than once type of incident can occur in a record).
Incitype1 Incitype2 Incitype3 Incitype4
Record1 Y Y N N
Record2 Y N Y N
Record3 N N Y N
Record4 N N Y N
........
(Y - checked, N - Not checked)
The result I need would go like this
Incitype1 2
Incitype2 1
Incitype3 3
Incitype4 0
I therefore have 4 fields each with a checkbox and what I need to do is count the number or each type of incident by counting the number of times the checkbox is 'Yes' for each record. I figure I need a query to do this but just can get it right.
Incitype1 Incitype2 Incitype3 Incitype4
Record1 Y Y N N
Record2 Y N Y N
Record3 N N Y N
Record4 N N Y N
........
(Y - checked, N - Not checked)
The result I need would go like this
Incitype1 2
Incitype2 1
Incitype3 3
Incitype4 0
I therefore have 4 fields each with a checkbox and what I need to do is count the number or each type of incident by counting the number of times the checkbox is 'Yes' for each record. I figure I need a query to do this but just can get it right.