Solved

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

Posted on 2002-07-12
4
208 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

759 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

18 Experts available now in Live!

Get 1:1 Help Now