thanks for your reply. The thing is, I have a colum like this. i have a field quantity type doble and field Cost for Item Yards wich has 40.20 (40 yards with 20 inches) on stock i have to calculate it cost like this 40X$10=400 Cost then yards has 36 inches, so 36/$10x20=72 the result is 40.72 for item pound its a normal calculation like this 30.56 on stock, 30.56x$12 Cost= 366.72 if you can se i cant calculate directly from the db like Stock X Quantity i need to get thesumof the result field Sorry for my bad english