You're providing very little information, so we only have wild guesses available as to what you want.
Maybe this, using the Northwind 2.3 OrderDetails table:
SELECT OrderDetails.OrderDetailID, OrderDetails.OrderID, OrderDetails.ProductID, DCount("*","OrderDetails","ProductID=" &...