View Full Version : Sum is not working as expected


LB79
07-13-2009, 05:53 AM
Hello,

Im having a problem summing 2 columns of data togather.
I have a column head "MySum:Sum([Field1]+[field2])". say both fields contain the value 1. I would expect the answer to be 2 but instead I get 11 (1 and 1 instead of 1+1).

What am I doing wrong here?

Thanks

Scooterbug
07-13-2009, 05:56 AM
I'm guessing that you have field1 and field2 set as text. Try using:

sum(val([field1])+val([field2]))

DCrake
07-13-2009, 06:16 AM
Or

Sum(Field1) + Sum(Field2)

David

LB79
07-13-2009, 07:00 AM
Thanks! Thats seems to have got it :)