PC Review


Reply
Thread Tools Rate Thread

Averages in Queries

 
 
=?Utf-8?B?Q2FzZXkgUA==?=
Guest
Posts: n/a
 
      7th Sep 2006
How would I do a Query to give me Averages?

Ex..
Average [Days Outstanding] by [Vendor]

also how do I get Totals

Ex..

Total [Review Cost] by Vendor
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      7th Sep 2006
In the Query Builder, click the Totals button (looks like a Greek Sigma).
It will change the query to a Totals (or aggregate) query. Add a table to
the top part and then drag Vendor and Days Outstanding into the grid.
Select GroupBy in the Totals line for Vendor and select AVG in the Totals
Line for Days Outstanding.

For the second question, use the SUM function.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Casey P" <(E-Mail Removed)> wrote in message
newsC241429-B569-42A1-8BF1-(E-Mail Removed)...
> How would I do a Query to give me Averages?
>
> Ex..
> Average [Days Outstanding] by [Vendor]
>
> also how do I get Totals
>
> Ex..
>
> Total [Review Cost] by Vendor



 
Reply With Quote
 
=?Utf-8?B?Q2FzZXkgUA==?=
Guest
Posts: n/a
 
      7th Sep 2006
Thanks, I feel like an idiot on the second question. Duh

Thanks again.

"Roger Carlson" wrote:

> In the Query Builder, click the Totals button (looks like a Greek Sigma).
> It will change the query to a Totals (or aggregate) query. Add a table to
> the top part and then drag Vendor and Days Outstanding into the grid.
> Select GroupBy in the Totals line for Vendor and select AVG in the Totals
> Line for Days Outstanding.
>
> For the second question, use the SUM function.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
>
> "Casey P" <(E-Mail Removed)> wrote in message
> newsC241429-B569-42A1-8BF1-(E-Mail Removed)...
> > How would I do a Query to give me Averages?
> >
> > Ex..
> > Average [Days Outstanding] by [Vendor]
> >
> > also how do I get Totals
> >
> > Ex..
> >
> > Total [Review Cost] by Vendor

>
>
>

 
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
Some forms based on queries are uneditable, but queries don't overlap Rachel Garrett Microsoft Access Form Coding 1 5th May 2008 08:39 PM
Alternative way to write queries: Parameterized queries .... i guess weird0 Microsoft C# .NET 2 28th Mar 2007 07:23 AM
My parameter queries fail, whereas my select queries work fine =?Utf-8?B?UEZNYXk=?= Microsoft Access Queries 4 28th Sep 2005 10:21 AM
Averages in queries =?Utf-8?B?U2F2aXRh?= Microsoft Access Queries 1 12th May 2004 12:12 PM
Queries using parameter queries, assigning values to for params in called query, is it possible? =?Utf-8?B?RnJhbmsgTS4=?= Microsoft Access Queries 1 13th Mar 2004 07:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.