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?
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?