If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > How to total a column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-03, 04:58
bambamn007 bambamn007 is offline
Registered User
 
Join Date: Jan 2003
Posts: 32
How to total a column

I know this is something simple, at least I think it is.
I have a table with the following columns:

name | score1 | score2 | name2

what I want to do, is to have a field somewhere, that has a total for all numbers in column score, and a field that has a total for all numbers in column score2. how can I do this? I am posting the results to a table on a website that has the total fields at the bottom of the columns.
Any help will be appreciated.
Bam
Reply With Quote
  #2 (permalink)  
Old 02-02-03, 09:12
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,729
maybe not the fastest, but possibly the simplest:

set the data source of a text box to
dsum("[score2]", "theNameOfYourTable")

izy

Last edited by izyrider; 02-02-03 at 09:19.
Reply With Quote
  #3 (permalink)  
Old 02-02-03, 10:34
bambamn007 bambamn007 is offline
Registered User
 
Join Date: Jan 2003
Posts: 32
Quote:
Originally posted by izyrider
maybe not the fastest, but possibly the simplest:

set the data source of a text box to
dsum("[score2]", "theNameOfYourTable")

izy
This may sound crazy, as I am new at this, but where do I find the data source of a single text box? I have access 2002 if that matters.
Bam
Reply With Quote
  #4 (permalink)  
Old 02-03-03, 02:03
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,729
open a form or report

add a text box.

View¦Properties to display the properties window.

click your text box once to show its properties in the properties window.

in the properties window under the Data tab you will see Control Source... you type:
=dsum("[score2]", "theNameOfYourTable")


izy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On