Results 1 to 4 of 4
  1. #1
    shuto13 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2012
    Posts
    10

    [need help] selecting maximum value from different fields

    hi everybody,


    as the title goes, I need some help here...

    I am making a form that looks like this (it's just the rough draft, trying to figure the works first)

    Click image for larger version. 

Name:	form.jpg 
Views:	12 
Size:	41.3 KB 
ID:	8330

    what it does, the user picks values from the combo boxes occ1, detect1, sever_eco, sever_hs, sever_envi.
    the textbox below sever_eco combobox is a calculated field that is the multiplication of occ1*detect1*sever_eco. and so on for sever_hs and sever_envi.

    the problem:
    the text box in the blue square
    the idea is that this text box picks the maximum value from the text boxes in the red box (i.e. the calculated fields)
    is it possible to do so?

    I've tried using Maximum([sever_eco],[sever_hs,[sever_envi]) but returned the error #Name?

    thanks before

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    There is no such built-in function. You should be able to use this:

    http://support.microsoft.com/default...b;en-us;209857
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    shuto13 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2012
    Posts
    10
    thanks for the reply

    I'll try the coding and compiling and hope that it works also for my case...

    I will report back as soon as I get a result...

    thanks again

    --------
    update:
    works like a charm...! thankyou very much!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Selecting highest value across several fields
    By megabrown in forum Queries
    Replies: 19
    Last Post: 10-28-2014, 01:16 AM
  2. Replies: 3
    Last Post: 02-02-2012, 09:48 AM
  3. Maximum number of fields in a Form
    By Bhat59 in forum Forms
    Replies: 2
    Last Post: 10-30-2011, 06:45 AM
  4. Replies: 2
    Last Post: 06-22-2010, 07:09 AM
  5. How do I return the maximum value
    By kam in forum Queries
    Replies: 2
    Last Post: 03-17-2010, 07:38 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