Link to home
Start Free TrialLog in
Avatar of advlegals
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.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Where do you have that expression?

mx
Avatar of advlegals
advlegals

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
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]))
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The key is .... across the Row, right?

either =([Field1]+[Field2]+ .....)

or

=([textbox1]+[textbox2]+ .....)

mx
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial