G
Guest
I have two related tables -- and a field ARTNAME that is the common field in
both. ARTNAME is the primary key in TableA and is the foreign key in Table B.
There is a field in the primary table called ARTDESC
In the Child table there are two yes/no fields -- PAINTING and SCULPTURE.
What I would like to do is count the number of Paintings and Sculptures for
each ARTDESC.
I would like the fields in the resulting query to be:
ARTDESC PAINTINGS SCULPTURE
Madonna and Child 4 12
The above shows that there are 4 paintings and 12 scuptures (16 items) that
come under the description Madonna and Child. How can I get this. I can get
one (either Paintings or Sculptures) but am not able to get both!
Is this supposed to be a Crosstab query. Please help if you can.
Thanks
both. ARTNAME is the primary key in TableA and is the foreign key in Table B.
There is a field in the primary table called ARTDESC
In the Child table there are two yes/no fields -- PAINTING and SCULPTURE.
What I would like to do is count the number of Paintings and Sculptures for
each ARTDESC.
I would like the fields in the resulting query to be:
ARTDESC PAINTINGS SCULPTURE
Madonna and Child 4 12
The above shows that there are 4 paintings and 12 scuptures (16 items) that
come under the description Madonna and Child. How can I get this. I can get
one (either Paintings or Sculptures) but am not able to get both!
Is this supposed to be a Crosstab query. Please help if you can.
Thanks