Question : Make field visible based on conditions of various dropdown boxes

Hello Everyone,
I have a form with 3 dropdown boxes, I need to make several fields visible in my form only if certain conditions in these 3 dropdown boxes are met.  If the user selects item 22 or 24 or 25 or 32 of the "CustomerImpactErrorType" dorpdown and item 5 of the "SubType" dropdown and item 1 of the "QCSelector" dropdown then make "ContactName" text box visible.
I'm assuming the best way of doing this would be to place code in the "After update" of each of the 3 dropdown boxes.... how would the code look like?

Answer : Make field visible based on conditions of various dropdown boxes

Of course... ;-)

SUB CheckSelections()

     select case CustomerImpactErrorType
          case 22,24,25,32
                  select CASE SubType
                         case 5
                                   select CASE QCSelector
                                         case 1
                                                  ContactName.visible=true
                                         case else
                                                  ContactName.visible=false
                                   end select
                         case else
                                ContactName.visible=false
                 end select
         case else
                  ContactName.visible=false
    end select

END SUB


Looking in for the other bug...
Random Solutions  
 
programming4us programming4us