Solved Open a filtered query from a Cmd Button

see the query in design view (property->Unique Values = Yes)
 

Attachments

see the query in design view (property->Unique Values = Yes)
I saw that and I went into the SQL too and saw you made it distinct. I'm not sure about the language yet but please help me understand

Here:
Code:
SELECT DISTINCT ProductDetailsT.ProductDetailID, OrdersT.CustomerID, ProductDetailsT.SKU, ProductDetailsT.ProductName, OrderDetailsT.DiscountPercent
FROM ProductDetailsT INNER JOIN (OrdersT INNER JOIN OrderDetailsT ON OrdersT.OrderID = OrderDetailsT.OrderID) ON ProductDetailsT.ProductDetailID = OrderDetailsT.ProductDetailsID;

You basically told it to select all the unique fields and not just SKU and Discount?
 
You basically told it to select all the unique fields and not just SKU and Discount?
yes. in design view:
unique_values.jpg
 
Last edited:

Users who are viewing this thread

Back
Top Bottom