Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Joliette, Quebec, Canada
    Posts
    290
    Thanks
    9
    Thanked 0 Times in 0 Posts

    need to find the minmim of 3 textboxes (97 sr2)

    in a query i want to calculate the max number possible of employees completely protected which is the minimum number of either number wearing hard hats (HH), or minimum wearing ear protectors (plugs) or the minimum wearing face masks (mask).

    <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>

  2. #2
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: need to find the minmim of 3 textboxes (97 sr2)

    If you want the least of the 3 values (HH, Plugs, Mask) then try:

    MaxProtected = iif(HH < Plugs, iif(HH < Mask, HH, Mask), iif(Plugs < Mask, Plugs, Mask))

    HTH
    Pat

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: need to find the minmim of 3 textboxes (97 sr2)

    You realize, I hope, that this maximum possible number of employee completely protected is a theoretical maximum, and in fact none of your employees may be fully protected?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •