Re: How to customize a text field based on a choice from a combo box
- From: "Sue Mosher [MVP-Outlook]" <suemvp@xxxxxxxxxxxxxxx>
- Date: Thu, 15 Sep 2005 16:08:51 -0400
Validation works like this: The validation formula must return True when the data is "good" and False when it is "bad." In your scenario, you have two cases where the data is "good":
When Choice #1 has been chosen in the combo box and the user has typed a number in the text box
When Choice #2 has been chosen in the combo box
As far as the formula goes, you can ignore Choice #1 itself, and use something like:
([ComboBoxField] = "Choice 2") OR ([TextBoxField] <> "default")
See how the two "good" types of data translate into two expressions, joined by OR?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"L.C" <LC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:20A2811B-19D1-4C2A-A6BE-58EB16628449@xxxxxxxxxxxxxxxx
> Hi there,
>
> I would like to link a text field to a combo box such that when a specific
> choice is made in the Combo Box, the User HAS to type in a number in the text
> box. There are only 2 choices in the Combo Box and the validation is set such
> that the User HAS to make one of the two choices. Now I want to do a second
> 'validation'- when the user makes ONE of the two choices, the user HAS to
> change the default text in the text box. I tried using an IIF statement in
> the text control (Properties, Validation): IIF([combo1]="choice1",
> [text1]<>"default", ""), but it doesn't work with either choice. Any
> suggestions? oh, and I'm SO NOT a developer or coder or whatever they're
> called.
>
> Thanks,
> L.C.
>
>
.
- Prev by Date: Re: Outlook Calendar Forms Appointment Help
- Next by Date: Re: Customize Subject Field
- Previous by thread: Outlook Calendar Forms Appointment Help
- Next by thread: Keeing an outlook form in focus
- Index(es):
Relevant Pages
|