Results 1 to 6 of 6
  1. #1
    wlkr.jk is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    20

    Only display top 6 results on report chart

    Hi all,

    I'd like to only display top 6 results on a report chart. Any idea how to do this?



    Depending on what is entered into the database, there could be a possible 200 items listed on the x axis of the chart, which would just be ridiculous. So, right now I have the chart displaying a count of the number of times each item is entered. Just want to top 6 counts.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    Make the query show TOP 6.

  3. #3
    wlkr.jk is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    20
    Thanks for letting me know about TOP.

    However, this will display the TOP 6 "counts", so if there is 2 items with the same count, it will display both of them. Therefore, I've got 7 items displayed on my chart (6 unique counts).

    How do I limit it to 6 items? I've tried using LIMIT TO but you're apparently not allowed to use that in Access.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    Wow...if I say 'top 6', I didnt know it would disobey and show 7. You got me on that one!

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    The only other option is make a macro to:

    append the top6 qry to a rpt table (with autonumber)
    Then delete everything w counter >6
    Then run the report off that table.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 02-13-2014, 06:34 PM
  2. Replies: 3
    Last Post: 05-02-2013, 10:36 AM
  3. Replies: 1
    Last Post: 02-18-2013, 02:09 PM
  4. Display copy and past friendly report results
    By jackyoung2012 in forum Reports
    Replies: 7
    Last Post: 03-20-2012, 11:41 AM
  5. Form to display results
    By Zholt in forum Forms
    Replies: 9
    Last Post: 05-07-2009, 10:09 AM

Tags for this Thread

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