Jamie:
Thanks for your reply. I am a recent CR user, so please bare with me. Your order number string manipulation seems fine. How would I group the records based on the string manipulation, so that I can get a total amount for the main order? The only parameter in the report is the date range wanted. I have written a SQL Command which preselects all sales orders within the entered date range. I still have to total the Q sub-sale order records to arrive at a total for the main sales order, and after that do the same for the sub-purchase orders which are in the same table. That's what still has me puzzuled, the consolidation for sub-sales orders and sub-purchase orders to print out 1 line for the main sales order.
Once again, my gratitude.