G
Guest
I am trying to construct a crosstab query to display product competition for
companies in a region, including reporting what cities do not have companies
selling that product, in other words, including records with no matches.
Here is how my db is set up:
Service Line Table
Product Line Table
Sub-Product Line Table
Sub-Product Lines Offered Table
Company Info Table
The relationships are:
One Service Line to Many Product Lines
One Product Line to Many Sub-Product Lines
One Sub-Product Line to Many Sub-Product Lines Offered
One CompanyID to Many Sub-Product Lines Offered
The Sub-Product Lines Offered is the "event" (related) table of the db.
I want to show *all* of the cities represented in the Company Info table as
rows in the crosstab, even if there is no related record in the Sub-Product
Lines Offered.
I want to show all of the Sub-Product Lines as the Columns in the crosstab,
even if there are no related records in the Sub-Product Lines Offered.
I want to show all of the CompanyID's in the Value section of the crosstab
(and have already successfully concatenated groupings of them, many thanks to
Duane Hookom and his patience). BUT i also want to show empty "cells" in the
crosstab if there are no matches for a City or a Sub-Product Line.
If anyone has followed this far, and is tracking with me, and has some
suggestions, I would be very grateful.
This kind of thing is very easy to do in Crystal Reports, but I'm having a
heckuva time in Access accomplishing this feat. Crystal has that excellent
"Others" grouping in its filters. In Access, you have to create queries
prior to your queries in order to include unrelated records. That's where
I'm having trouble.
Any thoughts?
TIA,
Steve Vincent
(e-mail address removed)
companies in a region, including reporting what cities do not have companies
selling that product, in other words, including records with no matches.
Here is how my db is set up:
Service Line Table
Product Line Table
Sub-Product Line Table
Sub-Product Lines Offered Table
Company Info Table
The relationships are:
One Service Line to Many Product Lines
One Product Line to Many Sub-Product Lines
One Sub-Product Line to Many Sub-Product Lines Offered
One CompanyID to Many Sub-Product Lines Offered
The Sub-Product Lines Offered is the "event" (related) table of the db.
I want to show *all* of the cities represented in the Company Info table as
rows in the crosstab, even if there is no related record in the Sub-Product
Lines Offered.
I want to show all of the Sub-Product Lines as the Columns in the crosstab,
even if there are no related records in the Sub-Product Lines Offered.
I want to show all of the CompanyID's in the Value section of the crosstab
(and have already successfully concatenated groupings of them, many thanks to
Duane Hookom and his patience). BUT i also want to show empty "cells" in the
crosstab if there are no matches for a City or a Sub-Product Line.
If anyone has followed this far, and is tracking with me, and has some
suggestions, I would be very grateful.
This kind of thing is very easy to do in Crystal Reports, but I'm having a
heckuva time in Access accomplishing this feat. Crystal has that excellent
"Others" grouping in its filters. In Access, you have to create queries
prior to your queries in order to include unrelated records. That's where
I'm having trouble.
Any thoughts?
TIA,
Steve Vincent
(e-mail address removed)