Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / December 2005

Tip: Looking for answers? Try searching our database.

Intervals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ray - 08 Dec 2005 02:06 GMT
I have a query that displays OrderQuantity and CostPerUnit. I want to group
the data in the query so I can see the average CostPerUnit for interval
ranges of OrderQuantity; For example:

Ordersize                 CostPerUnit
1 to 500                        1.50
501 to 1000                   1.25
1001 to 1500                 1.10

How do I get this type of grouping?
Duane Hookom - 08 Dec 2005 02:36 GMT
Do you have a table with MinOrderSize, MaxOrderSize, IntervalTitle? That
would be a good place to start. You can then add this table to your query
and set the Criteria under OrderQuantity to Between MinOrderSize And
MaxOrderSize. Add the IntervalTitle field to Group By and Average your
CostPerUnit.

Signature

Duane Hookom
MS Access MVP
--

>I have a query that displays OrderQuantity and CostPerUnit. I want to group
> the data in the query so I can see the average CostPerUnit for interval
[quoted text clipped - 6 lines]
>
> How do I get this type of grouping?
Ray - 08 Dec 2005 02:51 GMT
Way Cool!!!! Great idea.

> Do you have a table with MinOrderSize, MaxOrderSize, IntervalTitle? That
> would be a good place to start. You can then add this table to your query
[quoted text clipped - 12 lines]
> >
> > How do I get this type of grouping?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.