Hi Gina Thanks for getting back
I don't know how to get the sql.But this what I have typed into a text box That I dropped onto my report
=Dsum("SoldAtPrice","[Order Details","IDOrd=255")
The soldatprice is a currency field in the order details table which is a sub form of the neworders table...