Thanks for the response
The concept of the report is pretty simple - a top n report for a selected product's sales volumes (descending) by salesperson
The Tables used are:-
SalesOrders
Customer
CustomerAddresses
The salesOrders table has an equal join to the Customer table (using account no.) and a left outer join to the customer addresses table (again using account no.).
Using ODBC (Easysoft)
The problem area is that due to the data structures, the salespersons code needs to be extracted from 1 of 2 places.
From the Customer Addresses table if the order has an 'address code' or from the Customer table if there is not an 'address code' on the order.
The CustomerAddresses table may contain many entries for a customer/order, or no entries for a customer/order.
Without a sub report I can get the SalesPerson Code from either the Customer table or from the CustomerAddresses table OK , but the report was returning the salesorders n times and therefore I was unable to automatically sub-total accurately.
If I go back to this idea can I have/use a running total in a top n report?