Replace the dateStamp by the field with the customer.
In Northwind, that works fine:
SELECT a.ProductName, Last(a.UnitPrice), Sum(b.UnitPrice)
FROM Products AS a INNER JOIN Products AS b
ON a.ProductName >= b.ProductName
GROUP BY a.ProductName;
Vanderghast, Access MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.