A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do i add the values of a column in a query in Access



 
 
Thread Tools Display Modes
  #1  
Old December 14th, 2009, 04:27 PM posted to microsoft.public.access.queries
THPCT
external usenet poster
 
Posts: 1
Default How do i add the values of a column in a query in Access

This is driving me mad can someone help please:

How do i add the values of a column in a query in Access
  #2  
Old December 14th, 2009, 05:04 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default How do i add the values of a column in a query in Access

You do a totals query and use the Sum function.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"THPCT" wrote:

This is driving me mad can someone help please:

How do i add the values of a column in a query in Access

  #3  
Old December 14th, 2009, 05:10 PM posted to microsoft.public.access.queries
Kc-Mass
external usenet poster
 
Posts: 362
Default How do i add the values of a column in a query in Access

Let's say you have two fields, Price and Tax both defined as currency.
Place those in columns 1 and 2 of the query design panel. In the 3rd column
put in an Expression rather than a field name.

TotalPrice: Price + Tax

If the Price is $10.00 and the tax is $3.20, the expression Total will yeild
$13.20.

SQL will look like :

SELECT tblNetprice.Price, tblNetprice.Tax, [Price]+[Tax] AS TotalPrice
FROM tblNetprice;

Regards

Kevin
"THPCT" wrote in message
...
This is driving me mad can someone help please:

How do i add the values of a column in a query in Access



  #4  
Old December 16th, 2009, 05:34 AM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 744
Default How do i add the values of a column in a query in Access

On Dec 14, 10:27*am, THPCT wrote:
This is driving me mad can someone help please:

How do i add the values of a column in a query in Access


Or are you referring to a totals query?

SELECT SUM([MyNumericField]) As Total
FROM MyTable;
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.