I'm sure it's a simple fix, but I've been trying to figure it out for the last hour here...
Basically, I'm creating an expression in a query that adds the numbers in 10 fields from a table to give the total.
I.e.: Expression: [Amount1]+[Amount2]+[Amount3]...+[Amount10]
The [Amount1], [Amount2], etc. fields are all Currency fields.
There are actually 10 "Amount" fields in the underlying table, with some of the "Amount" fields that have currency values, and some that are null.
When I run the query, I get a blank in the output field for this expression. Not sure why. I did a bit of testing and noticed the only time the query actually adds Amount1 through Amount10 is when ALL AMOUNT fields have a value (other than zero). Even when I put a default of "0" in the underlying table for the "Amount" fields, I still get a blank output if only some Amount fields have a value.
Does anybody know how to fix this? I want the the expression to add all the amounts, and if there are only a few amounts entered, just to add those amounts....
Thanks!
Basically, I'm creating an expression in a query that adds the numbers in 10 fields from a table to give the total.
I.e.: Expression: [Amount1]+[Amount2]+[Amount3]...+[Amount10]
The [Amount1], [Amount2], etc. fields are all Currency fields.
There are actually 10 "Amount" fields in the underlying table, with some of the "Amount" fields that have currency values, and some that are null.
When I run the query, I get a blank in the output field for this expression. Not sure why. I did a bit of testing and noticed the only time the query actually adds Amount1 through Amount10 is when ALL AMOUNT fields have a value (other than zero). Even when I put a default of "0" in the underlying table for the "Amount" fields, I still get a blank output if only some Amount fields have a value.
Does anybody know how to fix this? I want the the expression to add all the amounts, and if there are only a few amounts entered, just to add those amounts....
Thanks!