Results 1 to 4 of 4
  1. #1
    Steven.Allman is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Feb 2010
    Posts
    118

    Create Teams based on averages

    Creating a golf database for the group of guys I play with.
    This version is missing a few things, due to size reduction, but what I have right now...
    I can select a player and it will input him into todays game, then close and reopen a report showing todays players and their average scores in the modified stableford we play.
    What I would like it to do from there, is create a query where it asks me how many teams, I select 4 or 5 (depending on our number of players, etc) and it will create teams with very similar averages.

    Is this way to complex for my advanced beginner Access brain?

    Tom Mike Dave Joe averages add up to 50
    Ben Mark Steve Dick averages add up to 50.

    Would this be much easier if I just did this last step by hand?
    Attached Files Attached Files

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,421
    It certainly is too much for me but it will be interesting to watch this thread. The idea of automatic mixing and matching just seems too complicated, but maybe that's because I've never even had to do it manually. Doing the calculations/grouping based on averages by writing sql or code just seems too daunting, given that any tournament might have as many as 3 three-player teams, so then what? You want to input a number (which is easy to do with a query parameter prompt) but you might have 38 players so you can't simply divide that by 4 and form teams of 9.5 players. In that scenario, you'd probably want eight 4's and two 3's.

    In any tournament I've played in, there always seems to be cliques formed through the knowledge of player ability who then take the lowest team score prizes.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    As a golfer, I did write a process (a complicated one) for this for doing Texas Scrambles teams in Excel a looooong time ago, and have often considered re-doing it in Access.
    It would need to be process where you took the list of entrants and then divided them into teams of 4 with a remainder to be manually adjusted.

    Gathering the teams is the interesting bit, as we were trying to have teams of similar playing abilities e.g. one low handicapper, a couple of mid range and one higher handicap team member.
    It takes a lot of looping and temporary tables from memory, and would be a lot easier in SQL server where you have decent inbuilt windowing (ranking) functions.

    I simply don't have the time to devote to it at the moment, but maybe the outline of the idea above would get you started.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,421
    I haven't bothered much with Excel outside of the vba side so I have to wonder if it isn't the better tool for this. There are some pretty powerful functions and number crunching tools in there but I wouldn't know where to begin. As always, if anyone is asking in a forum, I figure Google already knows about many people who have already figured this out.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. set teams meeting
    By diegomarino in forum Access
    Replies: 6
    Last Post: 10-18-2022, 03:08 AM
  2. Making phone calls via MS Teams
    By PioPio in forum Programming
    Replies: 3
    Last Post: 05-19-2020, 11:48 AM
  3. Replies: 3
    Last Post: 09-13-2013, 04:17 PM
  4. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  5. Create student teams via query?
    By jmccullough in forum Programming
    Replies: 0
    Last Post: 08-19-2009, 08:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums