Results 1 to 4 of 4
  1. #1
    Rigsby is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    3

    Number querie

    Hoping someone can help me here.
    im trying to create an expression to generate 5 highest numbers from twelve number fields (N1-N12), preferably each of the 5 high numbers will be entered into its own new field (H1-H5)

    It looks an easy task but i really dont know where to begin and any help will be very much appreciated.

    Thanks
    Kevin

  2. #2
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    Search google for: 'Sql MAX Function' and 'Select TOP 5'.

    These are some suggestions, as it sounds like the kind of thing that you need to head in the right direction.

    Good Luck Kevin.

  3. #3
    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,726
    You could store the 12 numbers, sort them ascending ,and pick only the last 5.

    If you had an array x(11)
    Put the sorted numbers into x(0)....x(11)
    then in a loop
    for i = 0 to 4
    pick x(i)
    and save it where you want
    next i

    Again, this just an approach

  4. #4
    thhui is offline Competent Performer
    Windows XP Access 2002
    Join Date
    Feb 2009
    Posts
    235
    This is indeed a transposer question.
    See the suggested answer from microsoft access website.

    http://support.microsoft.com/kb/182822

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

Similar Threads

  1. Querie criteria with list
    By apsf68 in forum Access
    Replies: 1
    Last Post: 12-04-2010, 12:13 PM
  2. update querie
    By frcastro in forum Queries
    Replies: 1
    Last Post: 06-23-2010, 04:20 AM
  3. Making New Record Number Next Numerical Number
    By jhillbrown in forum Access
    Replies: 1
    Last Post: 03-10-2010, 11:06 AM
  4. querie problem
    By TIMT in forum Queries
    Replies: 2
    Last Post: 05-31-2009, 10:12 AM
  5. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 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