I have a database set up for parts for automobiles. I have the products in a table and the makes/models set up in another table. I have a another table set up to link the products to each make/model in a many-to-many relationship (products can be for multiple makes/models and makes/models can be linked to many products). I have a report set up to do the following: Group on Make; Group on Model; Group on Start_Date; Sort by Product_Code.
This was working fine until I had to add a sub-category to the Models. So basically, I added a new table for Models_Sub. Take, for instance, an early Alfa Spider...the make is "Alfa Romeo", the model is "Spider (105/115 Series)", the sub-model could be "Series 1: 2000 Veloce", "Series 1: 1750 Veloce", "Series 2: 1300 Junior", etc...there are 13 sub-models for the Alfa Romeo Series 105/115 Spider.
Everything in the Form and Table is working properly for me to enter the information and store it. I altered the report to do the following: Group on Make; Group on Model; Group on Model_Sub; Group on Start_Date; Sort by Product_Code. The expected output would be something similar to this:
Alfa Romeo
Giulietta
(no sub models, so it just starts grouping the start date)
1955-1959
Product 1
Product 2
1960-1962
Product 3
Product 4
Spider 105/115 Series
Series 1: 1600 Duetto
1966-1967
Product 5
Product 6
Series 1: 1750 Veloce
1967-1969
Product 7
Product 8
Series 2: 2000 Veloce
1971-1982
Product 9
Product 10
....and so on.....
...what is actually happening is really weird... in this example, say products 5,6,7,8,9,10 (only the ones associated with a sub-model) are being duplicated for EVERY possible combination of sub-model...in other words, product 5 would be listed under EVERY sub-model and year range associated the model (Spider 105/115 Series). For instance, product 10 (which in this example should only display under Series 2: 2000 Veloce for the date range 1971-1982, will display under all categories listed under Spider 105/115 Series and would end up looking like this:
Alfa Romeo
Giulietta
(no sub models, so it just starts grouping the start date)
1955-1959
Product 1
Product 2
1960-1962
Product 3
Product 4
Spider 105/115 Series
Series 1: 1600 Duetto
1966-1967
Product 5
Product 6
Product 7
Product 8
Product 9
Product 10
Series 1: 1750 Veloce
1967-1969
Product 5
Product 6
Product 7
Product 8
Product 9
Product 10
Series 2: 2000 Veloce
1971-1982
Product 5
Product 6
Product 7
Product 8
Product 9
Product 10
...and so on....
This is only a small scale of what is actually happening... with 30 products total associated within the Spider 105/115 Series (which should be divided between the sub-models), its duplicating them for all 13 sub-models, so instead of 30 products on the report, I have 390....in a database that has thousands of products, this is a nightmare.... can anyone help and let me know what may be going wrong??