Results 1 to 3 of 3
  1. #1
    pchanger is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5

    Question Display Only The First 1,000 Results From A Query And Hide The Rest?

    Hey guys,

    I'm working with a large 20,000 record database. When I run the query it returns around 8,000 results.



    Is there a way that I can tell it to basically:

    1. Sort the 8,000 good results from lowest price to highest price based on the "Price" field

    2. Display only the first 1,000 (or whatever number I choose) results and hide the remaining 7,000.


    Obviously I could just view all the data, export it to excel and then delete everything I don't want, but is there a better way to do this?

    ~Luke

  2. #2
    pchanger is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5
    (I do know how to sort stuff based on a field, but I figured I'd leave it in the question because that would have to happen BEFORE hiding the remaining results)

  3. #3
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You can't "hide" results, you can only filter and sort. Sounds like you need to sort ascending on your desired field and use the TOP predicate, as in
    SELECT TOP 1000 FROM...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Hide specific query results by subtable
    By Muffel2k in forum Queries
    Replies: 4
    Last Post: 10-28-2017, 01:35 AM
  2. Replies: 3
    Last Post: 05-02-2013, 10:36 AM
  3. Replies: 5
    Last Post: 06-28-2012, 10:49 AM
  4. Display QUERY results into SUB FORM
    By taimysho0 in forum Programming
    Replies: 9
    Last Post: 11-23-2011, 12:26 PM
  5. Replies: 1
    Last Post: 12-01-2010, 11:10 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