Help with Access 07 query

pat amaral

New Member
Joined
Jul 22, 2011
Messages
1
I'm building a database to run scale modeling contests for the group I belong to here in Colorado. I'm using Access 2007. One of the tables I'm working with contains a list of the judges. These judges will be assigned to teams of 3. I want the database to automatically assign the team numbers for me. The table consists of five fields. JudgeID (the Primary Key) and JudgeName are the only fields of any importance. The remaining fields are only storing information about national/local club memberships.

I want to build a function that will take all the records in the table, divide the list into groups of three (teams), then evenly distribute a team number to each record. Let's say I have 15 judges on the list. Since this creates five teams, each judge will be assigned a team number between 1 and 5. I'm assuming this will have to be built using a query to get the job done.

I'd like to structure this function so that it doesn't matter how many records are in the table. If we have 41 judges, Access should be able to create 14 teams (one with two members) and then assign a team number to each judge, ranging from 1 to 14. Later in the competition, the teams will each be allocated several model catagories to judge.

Do you have any ideas on how I can pull this off? Although I've used Access a bit (a VERY little bit), I'm having trouble wrapping my head around this one. I'd appreciate any help you could give me.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top