Results 1 to 3 of 3
  1. #1
    JAM7007 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    6

    Getting every nth row from a query


    I have a query that ruled out a bunch of records from a table. I need create a query that returns every 10th row from that query OR have something embedded into the original query that could return every 10th row. (I am trying to create a query for auditing purposes, i need every 10th row to get an even and fair result) Any help would be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Google: query every 10th record

    Review http://support.microsoft.com/kb/207651
    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
    JAM7007 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    6
    Quote Originally Posted by June7 View Post
    Google: query every 10th record

    Review http://support.microsoft.com/kb/207651

    Thank you. After much research i found the mod method grabbing 10% of the data was the closest to what i needed. Although i found a temporary fix, there is still some tricky programming to be done. For example, i need to audit 10% of the 1000 records which is a total of 100 records. The most accurate and unbiased method would be to grab every 10th row of the 1000 records but there are about 200/1000 records that cannot be included in the Audit because of certain stipulations. So this method is tricky in the sense of manipulating the mod method to be able to accurately give me 100 records of the 800. The "1000"(overall records being input into my table) changes everyday; as does the "200/1000"(record that cannot be included in the 10%).

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

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