Sorting Data into Groups

G

Guest

I hope this is the right group --- My problem is this ---- I need to take the
information in a table and div it into 3 groups and then I need to sort those
groups into 3 as subgroups.
I really am at a loss and the boss wants it yesterday.
Thank You
For any help
 
D

Duane Hookom

This looks like the same exact question you started a thread in
access.reports news group. Please limit your posts to a single news group.
 
J

John Spencer

What do you have that you can use to divide the data?
How accurate do this have to be?

If you have an autonumber field or a primary key field that is unique
numbers, then one method would be

SELECT *, NumberField Mod 3 as GroupNumber
FROM SomeTable
Order By NumberField Mod 3, NumberField.

If you need to just get one group at a time, then add a where clause against
group number specifying 0, 1, or 2.

Again, it depends on what the structure of your table is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top