Results 1 to 5 of 5
  1. #1
    FrankGrinds is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    5

    How to prevent names from showing up more than once in multi-table query?(Screenshots


    I need to generate a report which shows who the top salesmen are.

    Shown below is a screenshot of the results of my query:
    Click image for larger version. 

Name:	Top salesmen.png 
Views:	2 
Size:	14.6 KB 
ID:	12029

    As you can see, most of the employees' names appear multiple times. I only want to see each employees name once and have each individuals' sales amount totaled.

    Shown below is a screenshot of the query in design view:
    Click image for larger version. 

Name:	top salesmen2.png 
Views:	4 
Size:	19.4 KB 
ID:	12030


    And shown below is the screenshot for my "Sales" table.

    Click image for larger version. 

Name:	top salesmen 3.png 
Views:	2 
Size:	17.1 KB 
ID:	12031

    Thanks in advance for any help.

    - Frank

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Do an aggregate (Totals) query. Access Help has guidelines on building.

    Or build a report using Grouping & Sorting with aggregate calcs in group footer. This will allow displaying detail records and summary results. Again, Access Help has guidelines.
    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
    FrankGrinds is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    5
    Hello Super Moderator June7,

    thank you for the timely response. I was able to get the result that I wanted, as you can see:

    Click image for larger version. 

Name:	access.png 
Views:	2 
Size:	7.7 KB 
ID:	12042

    Now, just one more thing.

    How can I limit the query so that it only shows the top 3 salesmen?

    - Frank

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use TOP. Open the query in design view. It is on property sheet.
    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.

  5. #5
    FrankGrinds is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    5
    This thread has been solved.

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

Similar Threads

  1. Replies: 3
    Last Post: 06-29-2012, 01:33 AM
  2. Replies: 1
    Last Post: 01-04-2012, 01:39 PM
  3. Report not showing all the names
    By tabbycat1234 in forum Reports
    Replies: 2
    Last Post: 11-26-2011, 07:14 AM
  4. Query to get column names in a table
    By access in forum Queries
    Replies: 1
    Last Post: 07-06-2009, 05:10 AM
  5. Query to get column names in a table
    By access in forum Forms
    Replies: 1
    Last Post: 07-01-2009, 02:50 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