#### Creating a Sum Column on a Table

```I am trying to create a table that has 4 columns. The first three fields are
test scores and the last is a column that I wish to have automatically sum
the first three numbers. How does one accomplish this?
```
 0
Utf
10/3/2007 5:07:02 PM
access 16762 articles. 3 followers.

8 Replies
1030 Views

Similar Articles

[PageSpeed] 59

```Hi Pete

Create a new query based on the table.
In a blance column add something like this

Result:
Nz([TableName]![Field1],0)+Nz([TableName]![Field2],0)+Nz([TableName]![Field3],0)

Change the TableName and field names to what they really are.
The Nz function will replace a null with a 0 (which you need just in case
any other fields are empty.

In most case it's not a good idea to store calculated results as I you
change an of the data the result will be wrong.

in SQL ths would look like this
SELECT
Nz([TableName]![Field1],0)+Nz([TableName]![Field2],0)+Nz([TableName]![Field3],0) AS Result
FROM TableName;

--
Wayne
Manchester, England.

"Pete" wrote:

> I am trying to create a table that has 4 columns. The first three fields are
> test scores and the last is a column that I wish to have automatically sum
> the first three numbers. How does one accomplish this?
```
 0
Utf
10/3/2007 5:22:02 PM
```Thanks alot for the prompt response. I feared that might be the case. Maybe
this is a better question...

I need to generate series of queries on from a much more complex table
relating to admission scores for college applicants. I need to provide my
coworkers and professors with access to the combined totals to these three
test scores in a variety of reports and queries. Am I correct in
understanding that outside of manually entering them into a column typed sum,
my only other option is to include an equation with every query or report I
generate?

```
 0
Utf
10/3/2007 5:29:03 PM
```Make one query & reference that in your other queries instead of the table

HtH

Pieter

"Pete" <Pete@discussions.microsoft.com> wrote in message
> Thanks alot for the prompt response. I feared that might be the case.
> Maybe
> this is a better question...
>
> I need to generate series of queries on from a much more complex table
> relating to admission scores for college applicants. I need to provide my
> coworkers and professors with access to the combined totals to these three
> test scores in a variety of reports and queries. Am I correct in
> understanding that outside of manually entering them into a column typed
> sum,
> my only other option is to include an equation with every query or report
> I
> generate?
>

```
 0
Pieter
10/3/2007 5:36:23 PM
```Thanks. I think you all have given me the proper logic path to deal with
this. I appreciate it!
```
 0
Utf
10/3/2007 7:04:00 PM
```> I am trying to create a table that has 4 columns. The first three fields are
> test scores and the last is a column that I wish to have automatically sum
> the first three numbers. How does one accomplish this?

hi
```
 0
guest
10/9/2007 3:42:02 AM
```You don't
You perform the calculation when you need it

Pieter

"guest" <guest@anonymous.com> wrote in message
news:%23lgwbZiCIHA.3400@TK2MSFTNGP03.phx.gbl...
>
>> I am trying to create a table that has 4 columns. The first three fields
>> are
>> test scores and the last is a column that I wish to have automatically
>> sum
>> the first three numbers. How does one accomplish this?
>
>
> hi

```
 0
Pieter
10/9/2007 7:15:52 AM
```Table1
Col1  Col2  Col3 ColSum
1       2        3       x
2       4        5       x

Example1:  Totals the three columns on the fly as value TotalCol

SELECT Table1.Col1, Table1.Col2, Table1.Col3, [Col1]+[Col2]+[Col3] AS
TotalCol
FROM Table1;

Example2: Actually updates the ColSum Field by totally Col1, Col2 and Col3

UPDATE Table1 SET Table1.ColSum = [Col1]+[Col2]+[Col3];

Hopefully that helps.
Michael Kintner
http://www.michaelkintner.com

"guest" <guest@anonymous.com> wrote in message
news:%23lgwbZiCIHA.3400@TK2MSFTNGP03.phx.gbl...
>
>> I am trying to create a table that has 4 columns. The first three fields
>> are
>> test scores and the last is a column that I wish to have automatically
>> sum
>> the first three numbers. How does one accomplish this?
>
>
> hi

```
 0
Michael
10/9/2007 12:57:43 PM
```might want to throw in a couple of nz's
SELECT Table1.Col1, Table1.Col2, Table1.Col3,
nz([Col1],0)+nz([Col2],0)+nz([Col3],09 AS  TotalCol
FROM Table1

HtH

Pieter

"Michael Kintner" <michaelkintner@nospam.com> wrote in message
news:13gmumfl4fjfe1@corp.supernews.com...
> Table1
> Col1  Col2  Col3 ColSum
> 1       2        3       x
> 2       4        5       x
>
> Example1:  Totals the three columns on the fly as value TotalCol
>
> SELECT Table1.Col1, Table1.Col2, Table1.Col3, [Col1]+[Col2]+[Col3] AS
> TotalCol
> FROM Table1;
>
> Example2: Actually updates the ColSum Field by totally Col1, Col2 and Col3
>
> UPDATE Table1 SET Table1.ColSum = [Col1]+[Col2]+[Col3];
>
>
> Hopefully that helps.
> Michael Kintner
> http://www.michaelkintner.com
>
>
>
>
> "guest" <guest@anonymous.com> wrote in message
> news:%23lgwbZiCIHA.3400@TK2MSFTNGP03.phx.gbl...
>>
>>> I am trying to create a table that has 4 columns. The first three fields
>>> are
>>> test scores and the last is a column that I wish to have automatically
>>> sum
>>> the first three numbers. How does one accomplish this?
>>
>>
>> hi
>
>

```
 0
Pieter
10/9/2007 1:13:19 PM

Similar Artilces:

create a roster
How can you create a weekly roster in which functions can be assigned to more than 10 people. The roster should be updatable, so that when holidays and days off are marked on the weekly roster they will be taken account of it future rosters. ...

Sum Across Tabs
Trying to sum col. C on all the tabs. Can do the =sum(c:c) on ONE tab. but trying to get all 12 added is mystery. Tried holding down shift key from first to last and it did not work. What, pray tell, am I doing wrong.. Starting to get to me now.. =SUM(Sheet1:Sheet12!C:C) Gord Dibben MS Excel MVP On Wed, 10 Feb 2010 10:25:05 -0500, "JLMcCabes" <JLMcCabes@cfl.rr.com> wrote: >Trying to sum col. C on all the tabs. Can do the =sum(c:c) on ONE tab. >but trying to get all 12 added is mystery. Tried holding down shift key >from first to l...

importing or creating reference footnotes
I am trying to import a word document into publisher and it has reference footnotes within the document. The reference footnotes are not coming into the publisher document with the reference footnotes. Correct, they will not up to Publisher 2003. In Publisher 2003 depending on which version of Word you are using if they will or not. -- "If you don't know where you are going, any road will take you there!" ...

Mailbox not created when AD account created
A couple of days ago I noticed that I created a user account but the 'Email Addresses' tab of the user properies did not list any email addresses. Subsequent new user accounts have all experienced the same. I researched the knowledge and tried the recommended solutions to either manaully start the recipient update service or rebuild te recipient update service. Neither recommendation has resulted in a mailbox being created for this particular user or any additional user that I have created since this error first showed up. I performed a Windows update last Thursday and so I bel...

Is there a way to adjust the column width automatically to fit the length of the longest data in the cell. I know how to do it one column at a time but not how to do all columns of data at once. Thanks, Jerry Do a <Ctrl> <A> to select the entire sheet, then, Do the same thing you would do for a single Column: <Format> <Column> <AutoFit> -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------...

I'm trying to make a simple task, when a user owner is assigned a task in CRM, it receives an email letting it know it has one. I have the following below, but it is not generating one when i assign one manually in the CRM. What to do? I've tried both the following: When task is created E-Mail to:[owner];Subject test As well as: When task is created if Task activity status = Open then E-Mail to:[owner];Subject test I've checked the mailserver many times over, and I can send emails manually from the CRM so you can rule that out Tested out ok on our end. Some ideas:...

Bug with cell merging in tables using Applescript
Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel Once you have merged cells in a table in Word 2008 using Applescript, any further reference to the table's cells in the script produce an error. <br><br>As an example, open Word 2008 and run this script: <br> tell application &quot;Microsoft Word&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make new table at active document with properties {number of rows:4, number of columns:4} <br> &nbsp;&nbsp;&nbsp;&nbsp...

Splitting one table into multiple tables/tabs
Hi I was wondering if anyone can help me split a table into multiple tables or tabs. If I have a table of 20 customers with various transactions over time all in one table. I'd like to know if it's possible to seperate the table into multiple tables based on the change in customer number and have them broken into multiple tabs without manually creating each tab and then cut and pasting. I really appreciate any help! Thanks! ...

Help Creating XmlNode / XmlAttribute Elegantly
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString" value="server=(local);" /> </appSettings> </configuration> I am using a XmlDocument for my base implementation. I am looking to see if there is a better way to add a new node / attribute than using XmlDocument.InnerXml. I would consider this to be a hack but couldn't really see another way of doing this without definin...

tabls in GP90 database
Does anyone know or have a description or documenation on the tables in the database for GP90? Maybe all I need is the important ones. thanks Within the program itself, Tools > Resource Descriptions Also, there are ERD's on the distribution CD's that you got when you purchased or upgraded the system - you have to install the SDK to get at them. -- Lyle U Adam Clark wrote: > Does anyone know or have a description or documenation on the tables > in the database for GP90? Maybe all I need is the important ones. > > thanks ...

Create external database
Hi all. I need to create an external database (file). On a site I found this code: ------------------------------------------------------ Function CreateLinkedExternalTable(strTargetDB As String, strProviderString As String, strSourceTbl As String, strLinkTblName As String) As String 'strTargetDB = Source Database Name 'strProviderString = Not used, currently hard coded 'strSourceTbl = Source Table name in the database we are linking too. 'strLinkTblName = Table name we would like to see in the Access Database. Dim catDB As ADOX.Catalog Dim tblLink As...

How to create pie chart with %
I have got a problem that I don't if excel could help me to calculate the % within a column and draw a pie chart. My case is I have a column containing a series of numbers. e.g. 1,4,8,1,3,9,11,2,4,5,6,.........etc I want to draw a pie chart that showing 1-3 , 4-6, 7-9, >9 with the corresponding % inside that column. Can anyone tell me how can I make it ? Ray - You need to calculate the frequencies in your data. Let's assume your data is in A1:A12. In B1:B3 enter these numbers, the upper limits on the groupings: 3 6 9 You can enter ">9" into B4 witho...

Email address not created when a new user is created
All, This issue recently happened in my company. Upon creating a new user, the policy was set to create the smtp and X400 address automaticaly. Now when we create a user the smtp and x400 addresses are not created, and when attempting to setup the new user in outlook, the address cant be found. We are using exchange 2003 SP1 on Win2k3 servers. On Wed, 13 Jul 2005 06:49:07 -0700, "Bryan" <Bryan@discussions.microsoft.com> wrote: >All, >This issue recently happened in my company. Upon creating a new user, the >policy was set to create the smtp and X400 addres...

Exchange 2010 MRM, no log files being created
I'm hoping someone can help me with this issue....it has been driving me crazy for days. I have enabled MRM logging on our exchange server, and I can see that some of the policies are working when I run start-managedfolderassistant. We have a retention policy tag on the deleteditems folder, and this does work. The problem is I am not getting any files in the MRM log directory. C:\Program Files\Microsoft\Exchange Server\V14\Logging\Managed Folder Assistant Events 9021 and 9022 are logged in the Application log, but where are the files? Below is the output of my mai...

when form created
I have a form which was created by someone else (not a form template) which is like a questionnaire with empty boxes to be completed. When the boxes are typed in all the margins move to accommodate the words being typed. Is there a way to fix/lock the original form and then just fill in the blank boxes? I suspect this is set up as a table with auto resizing enabled. Displaying table gridlines (Table | Show Gridlines) will help you see what you're dealing with. Then select the table, go to the Table tab of Table Properties, click Options, and clear the check box for "A...

Creating a Brochure
How do you create a 3-column brochure from scratch for Publisher 2002? I can only find the directions for the 2003 version. Quick help would be appreciated, project is due Monday. Create a three-panel or four-panel folded publication http://office.microsoft.com/en-us/assistance/HP011646681033.aspx Scroll down to the section that says "Build a three-panel or four-panel publications from scratch." -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Derek" <Derek@discussions.microsoft.com> wrote in message news...

How do you print an Excel worksheet to show the rows and columns?
I'm new to Excel, and trying to print a document that will show the rows and columns, rather than just the information. How do I do this? In Excel 97 (later versions will, I assume, be similar) click File - Page Setup. Then select the "Sheet" tab and in the box labelled "Print" will be a checkbox labelled "Gridlines". Check that and print it. Peter "Michaelangelo" <Michaelangelo@discussions.microsoft.com> wrote in message news:A635EBC2-AB49-45D8-803D-5C2E91ACDDAC@microsoft.com... > I'm new to Excel, and trying to print a document th...

How to create Access macro shortcut
I'm still using Access 97 and saw something the other day that I would like to use that was in Access 2000. In an Access 2000 database, there was a .mam file in a directory that launched the Access 2000 program and ran a macro. How do you set this up? Can it be done in Access 97? If so, how? Hi. > How do you set this up? Select the macro in the Database Window and right click with your mouse, then select "Create Shortcut..." in the pop-up menu. Follow the prompts for where to place the shortcut and what to name it. The default is: <PathToDeskTopDir>\Shortcut ...

Users mailboxes not created when user created
I have a problem that recently just started happening on my exchange 2003 server. When i create a new user account and create the mailbox for exchange, once im done, the mailbox isnt created, adn if you go into the properties of the user account adn go to the exchange email address tab, there isnt an smtp or an x.400 address listed. I am having to manually create and add these, adn then go delete the exchange mailbox and recreate it. This is really annoying and would love to know if anyone has any ideas of how to fix it. Thanks Jason In news:9F836A43-98BF-435A-AA43-AFF10124BE3F@micro...

Selecting column D automatically when you leave the sheet
I have an xl2003 workbook with several worksheets. Some sheet contain tables, or instructions, etc. Most of the sheets are identical templates i create as i need them. On these templates sheets, which are named 1, 2, 3, etc., I would like to, when i leave the sheet, I would like for the activecell.column to be column D. That is, when i leave the sheet, column D of the current row is selected. I have tried several ways to accomploish this, with no success. Thanks, Tosno You can use an Event macro to Select column D in the worksheet when the sheet gets deactivated: Private Sub Worksheet_Deac...

CRM should let me create custom fields in batch
Hi, With MS CRM v3.0, when we have a group of fields to create, it would be faster to be able to enter the list and then submit the list for processing. Thank you. Felix. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/Businesssolutions/C...