Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008

    Unanswered: Determining a streak

    Good morning,

    I am using Access 2007 and I am trying to determine the longest winning streak each person has.

    I have a table with the following columns: game number (each game number is unique to the 2 players in the game), date, outcome (-1 = loose, 0 = tie, and 1 = win). There is an entry into the table for each player for each game. I am trying to determine the longest winning streak for each player.

    I have a work around solution in Excel right now that counts the number of games and sums the outcome column, but it is a very manual process. What would be the best approach to accomplish this task in Access?


  2. #2
    Join Date
    May 2010
    I would probably loop through a recordset and count the number of items in a streak until you find the longest streak.

    Is that something you want to try?
    Boyd Trimmell aka HiTechCoach (free access stuff)
    Microsoft MVP - Access Expert
    BPM/Accounting Systems/Inventory Control/CRM
    Programming: Nine different ways to do it right, a thousand ways to do it wrong.
    Binary--it's as easy as 1-10-11

  3. #3
    Join Date
    Nov 2008
    Thanks for the idea!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts