advlegals
asked on
Access Tabular Form - Sum Rows
I'm trying to sum the rows on my tabular form but =Sum([1]+[2]+[3]) doesn't work. It's easy enough to sum columns but I could do with help with rows.
Thanks.
Thanks.
ASKER
In a text box which is on the same row as I'm trying to sum.
If ... in a Control Source of a text box, the general syntax is:
=Sum([Field1]+[Field2]+ .....)
where Field 1/2 are fields in the record source of the form, not the name of text boxes.
mx
=Sum([Field1]+[Field2]+ .....)
where Field 1/2 are fields in the record source of the form, not the name of text boxes.
mx
ASKER
I'm using the same syntax, the issue is that I'm summing a row of a 'tabular' form. Thanks.
use nz to handle nulls
=sum(nz([Field1]) +nz([Field2]) + nz([Field3]))
=sum(nz([Field1]) +nz([Field2]) + nz([Field3]))
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The key is .... across the Row, right?
either =([Field1]+[Field2]+ .....)
or
=([textbox1]+[textbox2]+ .....)
mx
either =([Field1]+[Field2]+ .....)
or
=([textbox1]+[textbox2]+ .....)
mx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mx