I have a report based on a query containing CustomerID, CustomerName and details of the customers' orders.
Some customers have the same CustomerName but obviously different CustomerIDs. I want to be able to arrange the sales report so it shows all orders for each distinct customer, ie by CustomerID.
If grouping by CustomerID I get the right results but not in alphabetical order by CustomerName. Grouping by CustomerName then by CustomerID displays all records for that name, ie irrespective of their IDs, so not what's needed.
How do I get records for each CustomerID to be displayed together, but on pages arranged with CustomerNames in alphabetical order?
Some customers have the same CustomerName but obviously different CustomerIDs. I want to be able to arrange the sales report so it shows all orders for each distinct customer, ie by CustomerID.
If grouping by CustomerID I get the right results but not in alphabetical order by CustomerName. Grouping by CustomerName then by CustomerID displays all records for that name, ie irrespective of their IDs, so not what's needed.
How do I get records for each CustomerID to be displayed together, but on pages arranged with CustomerNames in alphabetical order?