Calculations on reports

J

JEShowalter

At the end of a report I would like to calculate the sum
of a column of numbers. What are the steps to take to do
this?
 
C

Chris

Lets assume you have 4 text boxes (columns) to sum. We'll name then Box1,
Box2, Box3, Box4.


Now, this is the easiest way that I know of

In the report footer, add a unbound control under each column. Set it's
visible property to false.
Name them Total1, Total2, Total3, Total4.

Set their control sources to =Sum([Box1]), =Sum([Box2]), etc.

Now, add a 5th unbound control, and set it's control source to =Total1 +
total2 + total3 + total4
 
M

Marshall Barton

JEShowalter said:
At the end of a report I would like to calculate the sum
of a column of numbers. What are the steps to take to do
this?

Place a texct box in the report footer section. Set its
ControlSource property to =Sum(thefield)

Make sure that thefield is a field in the report's Record
Source table/query, not the name of another text box
control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top