I know this question may sound confusing, but let me try to simplify it.
I have a query, let's call query1, and a much larger table of all products. Here is query1:
Item_Code Description Order_Qty Option
1000 Prod1 5 Blue
1005 Prod5 3 Brown
1602 Prod6 1 Red
5620 Prod8 6 Yellow
9865 Prod2 1 Brown
1624 Prod3 3 Brown
9876 Prod12 4 Blue
Now in my table, I have a much bigger list of products with the same format. I want to make a new query that contains ALL that are blue, brown, red, and yellow. It works, but there is always a duplicate.
I'm not sure how to post my attempt but I'll explain what I tried. I made a new query and included the table and query1. I made a relationship between the two, to include only rows where the "option" is equal. But for some reason the resulting query will come out with repeats. Such as:
Item_Code Description Order_Qty Option
1000 Prod1 5 Blue
1009 <-- Prod2 6 Blue
1009 <-- Prod2 6 Blue
1010 <-- Prod9 7 Blue
1010 <-- Prod9 7 Blue
1011 <-- Prod11 9 Blue
1011 <-- Prod11 9 Blue
9876 <-- Prod12 4 Blue
9876 <-- Prod12 4 Blue
1005 <-- Prod5 3 Brown
1005 <-- Prod5 3 Brown
9865 <-- Prod2 1 Brown
9865 <-- Prod2 1 Brown
1624 <-- Prod3 3 Brown
1624 <-- Prod3 3 Brown
9877 Prod99 7 Brown
1111 <-- Prod67 8 Brown
1111 <-- Prod67 8 Brown
1602 Prod6 1 Red
1752 Prod56 2 Red
5620 Prod8 6 Yellow
And the worst part is, it won't always repeat. Maybe I'm approaching it wrong.
I know this may be a case of tldr, but if anyone could help that would be great.
Thanks.