A
Annette
I have an inspection table that has the following fields:
InspectionID, Type, Group, Question#, Status
I want a crosstab query that will list Type, Group and count the # of
questions for each status.
For example
Inspection ID Type Group Question Status
12 Comp CDC 1 In
12 Comp CDC 2 Out
12 Comp CDC 3 In
13 Comp CDC 1 In
13 Comp CDC 2 In
13 Comp CDC 3 In
12 Comp PTL 4 In
13 Comp PTL 4 Out
I would like the crosstab to return the following
Type Group Total Inspections In Out
Comp CDC 2 5 1
Comp PTL 2 1 1
Instead I am getting
Type Group Total Inspections In Out
Comp CDC 6 5 1
Comp PTL 2 1 1
In other words, the Total Inspection count needs to be the the count
of the distinct Inspection ID's and not the number of entries.
InspectionID, Type, Group, Question#, Status
I want a crosstab query that will list Type, Group and count the # of
questions for each status.
For example
Inspection ID Type Group Question Status
12 Comp CDC 1 In
12 Comp CDC 2 Out
12 Comp CDC 3 In
13 Comp CDC 1 In
13 Comp CDC 2 In
13 Comp CDC 3 In
12 Comp PTL 4 In
13 Comp PTL 4 Out
I would like the crosstab to return the following
Type Group Total Inspections In Out
Comp CDC 2 5 1
Comp PTL 2 1 1
Instead I am getting
Type Group Total Inspections In Out
Comp CDC 6 5 1
Comp PTL 2 1 1
In other words, the Total Inspection count needs to be the the count
of the distinct Inspection ID's and not the number of entries.