Validating that there is text in a text box whenever a check box is checked

R

RC

Outlook Forms is not really my thing so forgive me if this is a simple
question.

I've got 2 fields, one is a check-box, the other a Text-Box. All I want to
do is require that something is entered into the Text-Box whenever the
Check-Box is checked.

Also, only if its easy, it would be nice if I could have a message in the
text box when the form is opened that goes away as soon as you start typing
in the text-box, and of course that text can't meet the condition required
above. Is this making sense? Let me try to put it another way.

Lets say I have the following check-box and text-box.
[]Do you want a response
[ Enter your number here stupid]
I'd like the "Enter your number here stupid" displayed until they start
typing in the box. And IF "Do you want a response" is checked, something
other then "Enter your number here stupid" MUST be in the text-box.

Thanks
RC
 
S

Sue Mosher [MVP-Outlook]

I've got 2 fields, one is a check-box, the other a Text-Box.

Check boxes and text boxes are controls. They are not fields; they are user interface elements. They contain no data. Fields are the same as properties; they contain the data.
All I want to
do is require that something is entered into the Text-Box whenever the
Check-Box is checked.

Bind both controls to an appropriate Outlook property and then use a formula like this on the text box's Validation tab:

([CheckBoxField] = False) OR ([TextBoxField] = "")

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


RC said:
Outlook Forms is not really my thing so forgive me if this is a simple
question.

I've got 2 fields, one is a check-box, the other a Text-Box. All I want to
do is require that something is entered into the Text-Box whenever the
Check-Box is checked.

Also, only if its easy, it would be nice if I could have a message in the
text box when the form is opened that goes away as soon as you start typing
in the text-box, and of course that text can't meet the condition required
above. Is this making sense? Let me try to put it another way.

Lets say I have the following check-box and text-box.
[]Do you want a response
[ Enter your number here stupid]
I'd like the "Enter your number here stupid" displayed until they start
typing in the box. And IF "Do you want a response" is checked, something
other then "Enter your number here stupid" MUST be in the text-box.

Thanks
RC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top