Results 1 to 3 of 3
  1. #1
    Skettiman51 is offline Novice
    Windows 11 Access 2021
    Join Date
    Aug 2025
    Posts
    1

    Bowling scores statistics


    I am trying to write a query/report that will read the bowling scores from a table for several bowlers and calculate several things: Average, High Game, Total Games bowled, # of game 200 and over, # of games 250 and over, and # of 300 games. I have a query that reads the table and calculates Average, High Game, Total Games bowled for each of the bowlers. I also have a report that will print out that information too. But I would like to include the # of game 200 and over, # of games 250 and over, and # of 300 games. I have not be able to get a query to calculate all six fields. Any help will be much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Should provide your SQL statement.

    The additional fields would be calculated like:

    Sum(IIf(Score=>200, 1, Null))

    Sum(IIf(Score=>250, 1, Null))

    Sum(IIf(Score=300, 1, Null))

    An alternative is to build report using Sorting & Grouping features with aggregate calcs in textboxes. This allows display of detail data as well as summary info.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    430
    from your Query (say the name of the query is Query1) that calculate the Average, High games, and Total games, create new query out of it"

    Code:
    SELECT BowlerName, 
               Average,
              [High game], 
              [Total Games],  
    (SELECT Top 1 COUNT("1") FROM yourBowlingTable WHERE BowlerName = Query1.BowlerName And [Game Score] Between 200 And 249) As [# of Games 200 and over], 
    (SELECT Top 1 COUNT("1") FROM yourBowlingTable WHERE BowlerName = Query1.BowlerName And [Game Score] Between 250 And 299) As [# of Games 250 and over],
    (SELECT Top 1 COUNT("1") FROM yourBowlingTable WHERE BowlerName = Query1.BowlerName And [Game Score] >=300 ) As [# of Games 300] 
    FROM Query1

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

Similar Threads

  1. Moving Statistics below profit line on a report
    By Bill Singh in forum Access
    Replies: 1
    Last Post: 08-07-2014, 11:13 AM
  2. Replies: 1
    Last Post: 06-30-2014, 09:52 AM
  3. Replies: 1
    Last Post: 10-23-2013, 05:17 PM
  4. Access for tracking statistics
    By rjbeck52 in forum Access
    Replies: 2
    Last Post: 07-06-2011, 05:48 PM
  5. library statistics
    By sonia in forum Access
    Replies: 1
    Last Post: 04-11-2010, 12:22 PM

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