Solved

# Access Tabular Form - Sum Rows

Posted on 2007-08-09
Medium Priority
1,813 Views
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.
0
• 4
• 2
• 2

LVL 75

Expert Comment

ID: 19666349
Where do you have that expression?

mx
0

Author Comment

ID: 19666360
In a text box which is on the same row as I'm trying to sum.
0

LVL 75

Expert Comment

ID: 19666367
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
0

Author Comment

ID: 19666407
I'm using the same syntax, the issue is that I'm summing a row of a 'tabular' form. Thanks.
0

LVL 120

Expert Comment

ID: 19666413
use nz to handle nulls

=sum(nz([Field1]) +nz([Field2]) + nz([Field3]))
0

LVL 75

Accepted Solution

DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 750 total points
ID: 19666419
ok .... try

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

w/o out the Sum ... just use the plus sign.

mx
0

LVL 75

Expert Comment

ID: 19666426
The key is .... across the Row, right?

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

or

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

mx
0

LVL 120

Assisted Solution

Rey Obrero (Capricorn1) earned 750 total points
ID: 19666428
or you can use a query as record source of your tabular form,
include the totals in the query

select field1,field2,field3, nz([Field1]) +nz([Field2]) + nz([Field3]) as [Total]
from tableName
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
###### Suggested Courses
Course of the Month15 days, 10 hours left to enroll