Calculating columns

  • Thread starter Thread starter Taher
  • Start date Start date
T

Taher

Hi there

I have a table and I need to obtain the sum of all of the
values in a particular column. Firstly, how do I
distinguish which column I want to sum up; and secondly,
how do I get the sumation?

Thank you,
Taher
 
try

SELECT Sum(MyFieldName) AS SumOfMyFieldName FROM MyTableName

btw, a "column" is more appropriately called a "field" when talking about an
Access table.

hth
 
Hi there

I have a table and I need to obtain the sum of all of the
values in a particular column. Firstly, how do I
distinguish which column I want to sum up; and secondly,
how do I get the sumation?

Create a Query based on your table. Select the field (as Tina says,
that's a better name than "column"), and any other fields that you
want to group by if you want subtotals.

Click the Greek Sigma icon (it looks like a sideways M). A new
"Totals" row will appear in the query grid, with Group By as its
default.

Change that to Sum using the dropdown box to sum the field.
 

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

Similar Threads

key violation 2
SUM - IF - AND 7
Calculated field question 2
Calculations in a Sum Query 2
Total Row to Sum a Column 1
Can I do this with a query? 1
SUM on alias in a REPORT 1
Sum Values from different column 1

Back
Top