Solved

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

Posted on 2002-07-12
4
209 Views
Last Modified: 2010-04-08
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!
0
Comment
Question by:Marie-Anne
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:jessnjeff
ID: 7150678
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
 

Author Comment

by:Marie-Anne
ID: 7151120
I'm just a newbie, so if you could give me more information about the custompropertychange event... It would help me a lot!
0
 
LVL 8

Accepted Solution

by:
jessnjeff earned 300 total points
ID: 7158340
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
 

Author Comment

by:Marie-Anne
ID: 7162297
Thanks! you helped a lot!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now