Results 1 to 3 of 3
  1. #1
    Pyeman is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2021
    Posts
    4

    Adding similar records in a Query

    I have a simple db for a golf league (I'm a novice user). We play every week and award around 25 cash prizes each tournament. Often a player can win two or more different prizes. I can easily query tables to produce a list of winners. What I would like to do is design a query that will find those multiple winners and total their cash winnings.Click image for larger version. 

Name:	2022-02-12.jpg 
Views:	9 
Size:	112.1 KB 
ID:	47258Click image for larger version. 

Name:	2022-02-12 (1).jpg 
Views:	9 
Size:	112.2 KB 
ID:	47259 For example I would like to add Ted Baker's two prizes together so that I can just have one entry for him in my query.

    Many Thanks for any help you can offer

    Cheers,
    Dave

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Sounds like you want an aggregate GROUP BY query - there is a button on the QueryTools Design tab - looks like Sigma symbol.

    Or build a report and use its Sorting & Grouping features with aggregate calc in textbox. This allows display of detail data as well as summary info.

    Fairly basic Access functionality.
    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
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    In addition to June's good advice, you may want to research COUNT and SUM.

    If you're interested in multiple "winners" then you would select records where the Count of occurrences is greater than 1, and for a total of their winnings, SUM (winnings). And GROUP by the associated Players.

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

Similar Threads

  1. Adding records to query
    By Khalil Handal in forum Programming
    Replies: 14
    Last Post: 02-18-2020, 05:32 PM
  2. Multiple Records with similar values
    By alhk10 in forum Forms
    Replies: 1
    Last Post: 07-11-2018, 12:39 AM
  3. Combine similar records
    By tareyj8569 in forum Access
    Replies: 7
    Last Post: 10-27-2016, 03:38 PM
  4. Retrieve similar records
    By dodell in forum Queries
    Replies: 3
    Last Post: 03-31-2010, 11:48 AM
  5. Replies: 1
    Last Post: 01-22-2010, 03: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