Results 1 to 3 of 3
  1. #1
    kam is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    2

    Post How do I return the maximum value

    Hi,



    I have a table that contains two fields. 1) Part Number. 2) Version. The table is going to be used to keep track of drawing versions for my Engineering department.

    I want to be able to design a query that will return the latest version number for a given part Number
    Version numbers are assigned from A. to Z and then from 1 -100. With A being the lowest value and 100 being the highest.

    So for the example data :-

    Part Number version
    987680 C
    987680 7
    987680 1

    I want the query result to display 987680 7 since this is greater than C and 1

    How can I achieve this? I’m a newbie to Access and don’t really have a clue. Any help will be most appreciated.
    Thanks.

  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Click the "Sum" button on your tool bar. It looks like a large "E". Under your "Part Number" field there will be a row that says "Group By". Click on the drop-down and click on "Max". That should return what you are looking for. Let me know if it does not.

  3. #3
    kam is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    2
    Thanks,
    I thought this would work, unfortuantely Alphabetical characters are appear to be greater than numbers.

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

Similar Threads

  1. Find Maximum Value of a Field and Add 1
    By jhillbrown in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 11:42 AM
  2. Return 0 if no records found
    By skwilliamson in forum Programming
    Replies: 1
    Last Post: 12-01-2009, 10:54 AM
  3. Return value of row above
    By marimar1097 in forum Access
    Replies: 7
    Last Post: 10-20-2009, 08:06 AM
  4. I need to return a value for calculation.
    By FestoAccessBuilder in forum Access
    Replies: 1
    Last Post: 02-22-2009, 09:58 AM
  5. Return Record # In Query
    By redwinger354 in forum Access
    Replies: 1
    Last Post: 09-15-2007, 01:08 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