ACC: How to Return Records in a Many-to-Many RelationshipID: Q106287
|
Novice: Requires knowledge of the user interface on single-user computers.
This article demonstrates how to design a query to return the records from
one table in a many-to-many relationship where each of the records returned
is related to two records in the other table in the relationship. Note that
the many-to-many relationship between the two tables is broken into two
one-to-many relationships with a third (junction) table.
The following steps demonstrate how to create a sample query to return
records from one table in a many-to-many relationship:
Query: Test
---------------------------------------------------------
Type: Select Query
Field Name: OrderID (or Order ID in versions 1.x and 2.0)
Total: Group By
Field Name: ProductID (or Product ID in versions 1.x and 2.0)
Total: Count
Criteria: >1
Field Name: ProductID
Total: Where
Show: False
Criteria: 14 Or 21
For more information about queries, search for "criteria, queries, entering," and then "Enter criteria in a query or advanced filter to retrieve certain records" using the Microsoft Access 97 Help Index.
Keywords : GnlApp
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 27, 1999