Forms: Choosing a field in dropdown box will show other textfield

Hi,
I'm developing a helpdesk form
This is what i want to do:
I have a dropdown box with 2 values (contractor or own employee). Own employee is the default value. If contractor is chosen a textfield must appear.
I've created the dropdown box (name = EndUserType) and a textfield (name = ExpirationDate). My Outlook Version is 10.0 (Outlook 2002). I don't have a code yet. Hope anybody want/can to help me!
Marie-AnneAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jessnjeffConnect With a Mentor Commented:
Okay....
1.  dropdown box field is called EmpStatus
2.  textfield is called MyText


Sub Item_CustomPropertyChange(ByVal Name)

'Get formpages
     Set curpage = Item.getinspector.modifiedformpages("P.2")<----This is the page on which the control is located.  If you used the first one in a message form, it is usually called "Message"
     
'Get controls
         Set myControl = curpage.Controls

     Select Case Name
          Case "EmpStatus"
                myControl("MyText").visible = true
        End Select
End sub

0
 
jessnjeffCommented:
put the code to make the textfield.visible = true in the Custompropertychange event of the form.

post back if you need further details on proper syntax
0
 
Marie-AnneAuthor Commented:
I'm just a newbie, so if you could give me more information about the custompropertychange event... It would help me a lot!
0
 
Marie-AnneAuthor Commented:
Thanks! you helped a lot!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.