Results 1 to 9 of 9
  1. #1
    Carpy01 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    7

    Access TOP VALUE in query

    When I set TOP VALUE to 10 and run query I get the top 12 records. Can anyone please help with this problem.


    Thanks Carpy01

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I always get 10 when I put top 10. Not sure what is behind you scenario.

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    view the query in sql view and paste it in. that'll be more helpful than us guessing.

  4. #4
    Carpy01 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    7

    Access TOP VALUE in query

    SELECT TOP 10qry_PlayScore20MostRecent.Diiff, qry_PlayScore20MostRecent.Date
    FROM qry_PlayScore20MostRecent
    ORDER BY qry_PlayScore20MostRecent.Diiff;

  5. #5
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    you need a space after 10.
    SELECT TOP 10 qry_PlayScore.....

  6. #6
    Carpy01 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    7
    SELECT TOP 10 qry_PlayScore20MostRecent.Diiff, qry_PlayScore20MostRecent.Date
    FROM qry_PlayScore20MostRecent
    ORDER BY qry_PlayScore20MostRecent.Diiff;

    Give a return of 12 records!

  7. #7
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    i dont know what to tell you. i dont see why you'd be getting 12. it must have something to do with the original query used in this one. i cant think of anything else =/

  8. #8
    cguzman is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    1
    Check your numbers. I'm pretty sure you have a tie.

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Can you show us the original queries? Perhaps there is something filtering/not filtering your records.
    Could be a tie as cguzman suggested.

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

Similar Threads

  1. New to access and need help with query
    By zero3ree in forum Access
    Replies: 1
    Last Post: 02-12-2010, 05:03 AM
  2. Access Query help
    By hascons in forum Database Design
    Replies: 1
    Last Post: 12-13-2009, 11:38 PM
  3. Access Query
    By malaysarkar in forum Queries
    Replies: 0
    Last Post: 11-26-2009, 12:57 PM
  4. Access query
    By timboellis in forum Queries
    Replies: 1
    Last Post: 09-19-2009, 08:39 AM
  5. Sql server query to MS access query
    By blazixinfo@yahoo.com in forum Queries
    Replies: 0
    Last Post: 07-07-2009, 08:12 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