Adding up records in a query

P

predwine

I want to add up all the records in a query or report. I.e., the total
number hours a certain employee has worked. I only want to add up the one
column. How do I do this in a query? Should it be done in a report instead?
 
J

John Vinson

I want to add up all the records in a query or report. I.e., the total
number hours a certain employee has worked. I only want to add up the one
column. How do I do this in a query? Should it be done in a report instead?

It's simplest in a Report. Put a textbox in the Report Footer (or a
Group Footer if you're grouping by employee or some other field). Set
its Control Source property to

=Sum([fieldname])

John W. Vinson[MVP]
 
D

debra turner

make sure the fields that you are wanting to add up are number fields in the
table first. They have to be numeric to add up. and yes the totals need to
be done at the report level. you can use the wizard to help you to create
the totals.
 

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