J
James
I created a table that will allow the user to assign similar items to the
currently viewed item. It works almost as planned.
For example: If a user adds a record that says"Item A" is similar to "Item
B", "B" will be displayed in lstSimilarItems on "A's" record.
However, I can't seem to get it to work the other way (If "A" is similar to
"B", "B" is also similar to "A"). Is there a way to make "A" show on "B" AND
"B" show on "A" without having to add it twice???
Any help will be greatly appreciated. MY current SQL is listed below-->
SQL:
SELECT tblSimilarItems.SimilarItemsID, tblProduct.ProductName AS [Similar
Product], tblSimilarItems.SimilarProductID
FROM tblSimilarItems INNER JOIN tblProduct ON
tblSimilarItems.SimilarProductID = tblProduct.ProductID
WHERE (((tblSimilarItems.ProductID)=[Forms].[frmProduct].[txtProductID]))
ORDER BY tblProduct.ProductName;
currently viewed item. It works almost as planned.
For example: If a user adds a record that says"Item A" is similar to "Item
B", "B" will be displayed in lstSimilarItems on "A's" record.
However, I can't seem to get it to work the other way (If "A" is similar to
"B", "B" is also similar to "A"). Is there a way to make "A" show on "B" AND
"B" show on "A" without having to add it twice???
Any help will be greatly appreciated. MY current SQL is listed below-->
SQL:
SELECT tblSimilarItems.SimilarItemsID, tblProduct.ProductName AS [Similar
Product], tblSimilarItems.SimilarProductID
FROM tblSimilarItems INNER JOIN tblProduct ON
tblSimilarItems.SimilarProductID = tblProduct.ProductID
WHERE (((tblSimilarItems.ProductID)=[Forms].[frmProduct].[txtProductID]))
ORDER BY tblProduct.ProductName;