Dell i though it was working, i must have messed something up, I think the grouping has something to do with it but not sure, if i show the data in formula field we set up there is a lot of repetition, same number.
This is formula under heading SalesTotalDetail
WhilePrintingRecords;
NumberVar SalesTotal;
If OnFirstRecord or ({ICITEM.ITEMNO}<>previous({ICITEM.ITEMNO}) and {OESHDT.TRANNUM}<>previous({OESHDT.TRANNUM})) then
SalesTotal:=SalesTotal+{OESHDT.SAMTSALES}
else SalesTotal
The data we want added is under Invoice Amount heading