I am trying to design a query to total income from a number of contracts grouped by customer name. I am working in Design View as I am not able to code in SQL. I have set the the 'total' row to count numbers of contracts and total income grouped by Customer Name but the name may be slightly different for various divisions of a customer and these are listed separately. In a report I can combine the records for these by grouping on, say, the first 5 characters but I also want to sort the result on income which I can't do in a report. Is it possible to group by number of characters in a query ?