Q
qaz
I have three tables which are all related by key: Category >> Subject >>
Detail.
The keys are related as follows:
Category.IDCat >> Subject.IDCat
Subject.IDSubj >> Detail.IDSubj
(all relationships are one to many)
I want to return a single query (I don't want to have to run multiple
queries) which will return all data grouped by Category & Subject AND I want
to return a group count for each subject (I want to return the number of
"detail" records within each subject. So, if the Category is Plant and the
Subject is Orchid and there are 7 detail records on different Orchids, I
want to return a recordset which contains
Category: Plant
Subject: Orchid
SubjCount: 7
Detail: [7 Detail Records]
etc., etc. for other categories & subjects.
I am having a heck of a time creating a query that will do this, though I
suspect it is rather straight forward. Could someone provide me a simple (I
hope) "template" query to solve this problem?
Thanks.
Detail.
The keys are related as follows:
Category.IDCat >> Subject.IDCat
Subject.IDSubj >> Detail.IDSubj
(all relationships are one to many)
I want to return a single query (I don't want to have to run multiple
queries) which will return all data grouped by Category & Subject AND I want
to return a group count for each subject (I want to return the number of
"detail" records within each subject. So, if the Category is Plant and the
Subject is Orchid and there are 7 detail records on different Orchids, I
want to return a recordset which contains
Category: Plant
Subject: Orchid
SubjCount: 7
Detail: [7 Detail Records]
etc., etc. for other categories & subjects.
I am having a heck of a time creating a query that will do this, though I
suspect it is rather straight forward. Could someone provide me a simple (I
hope) "template" query to solve this problem?
Thanks.