Results 1 to 2 of 2
  1. #1
    Machinist is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    1

    Min and max values

    Hello everyone,



    I'm new to database creation, and have a question that I'm sure will be easy to answer for many of you. In Access 2010, I'm trying to create a query that returns the highest and lowest values from a single field. I have accomplished this returning "1" and selecting ascending or descending for the high or low values, but not able to return both. Will I have to create 2 querys like I described above and join them, or is there a way to filter out everything between the min and max values? Thank you, your help is very much appreciated.

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How about:
    Code:
    SELECT Max([TheNumber]) AS MaxNum, Min([TheNumber]) AS MinNum
    FROM Target;
    where the field that has the numbers is named "TheNumber".

    Disclaimer:
    This is simplistic answer; it answers your direct question but may not be what you want because of other fields that would be included in the query. Not knowing what you are trying to accomplish, results in a limited answer.

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

Similar Threads

  1. Replies: 0
    Last Post: 07-26-2011, 02:03 PM
  2. New Values
    By MarkDuffy in forum Forms
    Replies: 3
    Last Post: 03-11-2011, 07:43 AM
  3. Replies: 8
    Last Post: 05-25-2010, 04:50 AM
  4. Replies: 3
    Last Post: 04-04-2010, 05:26 PM
  5. Replies: 1
    Last Post: 03-27-2010, 06:13 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