1.
SELECT
POandProduct.OrderID, POandProduct.ProductID,
SUM
(POandProduct.Quantity*Productdetails.TotalWeight)
AS
SumTotal
2.
FROM
Productdetails
INNER
JOIN
POandProduct
ON
Productdetails.ProductID = POandProduct.ProductID
3.
WHERE
(((POandProduct.OrderID)=
'" & texSearch.Text & "'
))
4.
GROUP
BY
POandProduct.OrderID, POandProduct.ProductID
5.
ORDER
BY
Productdetails.TotalWeight
DESC