K
Karl
Hello,
I am trying to create a report from a query.
I want to create a report that will list all my products by category, and
then all the corresponding components and subcomponents of the each product
(plus some additional info about the components and subcomponents (i.e.
quantity, make, model #). Each one of these is a seperate table all linear
linked as follows:
Categories >>Products>>Components>>Sub Components
As my query stands it only shows the category, product and compents that
also have subcompenents (some of my components don't have sub-components).
However I have some components that do not contain any sub-components so
these components are not shown in the current query. I want my query to show
both components that do not have sub-compoents and all those components that
do have sub-compents. But I also want the sub-compents that exist to show up
as well.
I am hoping might be a sql statement I could add to the criteria of the
component field that would cause it to show all the components even the ones
without sub-components (without removing the sub-components).
Here is the query SQL.
SELECT Categories.Category, [Product Table].ProductName, [Components
table].[Name of Equipment], [Sub Component Table].[Component Name]
FROM ((Categories INNER JOIN [Product Table] ON Categories.CategoryID =
[Product Table].CategoryID) INNER JOIN [Components table] ON [Product
Table].ProductID = [Components table].ProductID) INNER JOIN [Sub Component
Table] ON [Components table].[Equipment ID] = [Sub Component
Table].[Equipment ID];
Thanks in Advance,
Karl
I am trying to create a report from a query.
I want to create a report that will list all my products by category, and
then all the corresponding components and subcomponents of the each product
(plus some additional info about the components and subcomponents (i.e.
quantity, make, model #). Each one of these is a seperate table all linear
linked as follows:
Categories >>Products>>Components>>Sub Components
As my query stands it only shows the category, product and compents that
also have subcompenents (some of my components don't have sub-components).
However I have some components that do not contain any sub-components so
these components are not shown in the current query. I want my query to show
both components that do not have sub-compoents and all those components that
do have sub-compents. But I also want the sub-compents that exist to show up
as well.
I am hoping might be a sql statement I could add to the criteria of the
component field that would cause it to show all the components even the ones
without sub-components (without removing the sub-components).
Here is the query SQL.
SELECT Categories.Category, [Product Table].ProductName, [Components
table].[Name of Equipment], [Sub Component Table].[Component Name]
FROM ((Categories INNER JOIN [Product Table] ON Categories.CategoryID =
[Product Table].CategoryID) INNER JOIN [Components table] ON [Product
Table].ProductID = [Components table].ProductID) INNER JOIN [Sub Component
Table] ON [Components table].[Equipment ID] = [Sub Component
Table].[Equipment ID];
Thanks in Advance,
Karl