G
Guest
Haven't had much success on my own so I hope this makes sense...
The Row Heading is a Part Number and the Column Heading is a Type. The Type
column is my PIVOT column. Each Part can be Type "1" or Type "7".
To simplify, this is the current example of the query.
Part Type1 Type7 (Column Headings)
Part A 2 1 (Part A shows 2 Type 1 and 1 Type 7)
Part B 1 (Part B shows 1 Type 1 and NO Type 7)
Part C 1 2 (Part C shows 1 Type 1 and 2 Type 7)
Problem. I only want to show Parts that have records for both Type 1 and
Type 7. Part B does not have records for each Type, only Type 1. I'm trying
to compare Parts with both Types so this is a useless record. I want to
filter it out.
Since the Type is a single field that the crosstab divides into two columns,
I am not sure how to write a WHERE statement.
The Row Heading is a Part Number and the Column Heading is a Type. The Type
column is my PIVOT column. Each Part can be Type "1" or Type "7".
To simplify, this is the current example of the query.
Part Type1 Type7 (Column Headings)
Part A 2 1 (Part A shows 2 Type 1 and 1 Type 7)
Part B 1 (Part B shows 1 Type 1 and NO Type 7)
Part C 1 2 (Part C shows 1 Type 1 and 2 Type 7)
Problem. I only want to show Parts that have records for both Type 1 and
Type 7. Part B does not have records for each Type, only Type 1. I'm trying
to compare Parts with both Types so this is a useless record. I want to
filter it out.
Since the Type is a single field that the crosstab divides into two columns,
I am not sure how to write a WHERE statement.