PC Review


Reply
Thread Tools Rate Thread

add values from four columns in query ms access 2003

 
 
=?Utf-8?B?SmVyb2Vu?=
Guest
Posts: n/a
 
      31st Oct 2007
hello, I want to add (som) values from four different columns to have a total
score from four columns. My columns are person, kwartaal 1, kwartaal 2,
kwartaal 3, kwartaal 4. I want the total score from kwartaal 1,2,3,4 together
of each person.
Somehow I can't manage it. Can you help me ?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmVN?=
Guest
Posts: n/a
 
      31st Oct 2007
Create a field in your query like this:

TotalScore: Nz(kwartaal 1,0) + Nz(kwartaal 2,0) + Nz(kwartaal 3,0) +
Nz(kwartaal 4,0)

The Nz() function will take care of any that may be Null.

Steve
--
Steve McGuire
MCSD, MCAD, MCP


"Jeroen" wrote:

> hello, I want to add (som) values from four different columns to have a total
> score from four columns. My columns are person, kwartaal 1, kwartaal 2,
> kwartaal 3, kwartaal 4. I want the total score from kwartaal 1,2,3,4 together
> of each person.
> Somehow I can't manage it. Can you help me ?

 
Reply With Quote
 
=?Utf-8?B?SmVyb2Vu?=
Guest
Posts: n/a
 
      1st Nov 2007
Thanks for the answer. Has this to be done in a selection query ? I don't
know how to do it. I have to choose a field name Naam, Kwartaal 1, Kwartaal
2, Kwartaal 3 or Kwartaal 4, I have chosen Naam, then Expression and filled
in like below, but that must be fault. I don't know how to make a new field
in the query which isn't made of the fields Naam, Kwartaal 1, Kwartaal 2,
Kwartaal 3 or Kwartaal 4. Can you help me ?

"SteveM" wrote:

> Create a field in your query like this:
>
> TotalScore: Nz(kwartaal 1,0) + Nz(kwartaal 2,0) + Nz(kwartaal 3,0) +
> Nz(kwartaal 4,0)
>
> The Nz() function will take care of any that may be Null.
>
> Steve
> --
> Steve McGuire
> MCSD, MCAD, MCP
>
>
> "Jeroen" wrote:
>
> > hello, I want to add (som) values from four different columns to have a total
> > score from four columns. My columns are person, kwartaal 1, kwartaal 2,
> > kwartaal 3, kwartaal 4. I want the total score from kwartaal 1,2,3,4 together
> > of each person.
> > Somehow I can't manage it. Can you help me ?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find unique values using an access 2003 query JGH Microsoft Access Queries 2 15th Jan 2009 06:36 AM
Access 2003 Printing Query Parameter values onto your report. Carol Microsoft Access Reports 6 27th Nov 2007 11:50 PM
modifying field values in an Access 2003 query Jan07 Microsoft Access Queries 3 26th Nov 2007 11:15 PM
What is the maximum number of columns in a Access 2003 query =?Utf-8?B?S2lyYW4gUGFyaWto?= Microsoft Access 1 18th Jan 2006 04:03 PM
Adding Values from different columns in a query. =?Utf-8?B?SmFtZXMgTw==?= Microsoft Access 4 21st Oct 2005 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 AM.