Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Help with creating a validation (http://www.outlookbanter.com/outlook-using-forms/20783-help-creating-validation.html)

Gladys July 14th 06 07:08 PM

Help with creating a validation
 
In this form I am working on, I have two fields: [Country] (which is a drop
down combo box) and [Other country], a text field which will require input if
the country of choice is not available for the user.

For example, if the user chooses "other" from the drop down list of
[country], they will need to specify the country name in the [other country]
text field. I tried to use the following formula in the validation tab:

([country] "other") OR ([other country] "")

but I got an "error in validation text formula for 'other country' --
illegal right operand for IN".
What did i do wrong? I hope someone can help me out so I can stop banging my
head against the wall. Thanks




Sue Mosher [MVP-Outlook] July 14th 06 07:14 PM

Help with creating a validation
 
Do you also have validation text that displays a message to the user? (the 2nd formula box on the Validation tab) I think that's what this message is referring to.
--
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

"Gladys" wrote in message ...
In this form I am working on, I have two fields: [Country] (which is a drop
down combo box) and [Other country], a text field which will require input if
the country of choice is not available for the user.

For example, if the user chooses "other" from the drop down list of
[country], they will need to specify the country name in the [other country]
text field. I tried to use the following formula in the validation tab:

([country] "other") OR ([other country] "")

but I got an "error in validation text formula for 'other country' --
illegal right operand for IN".
What did i do wrong? I hope someone can help me out so I can stop banging my
head against the wall. Thanks




Gladys July 14th 06 08:28 PM

Help with creating a validation
 
Thanks. I played around with the message text and realised that if my message
got too long, this error message pops up. Do you know if the message text is
restricted to a certain number of letters?

Also, the formula I've used: ([country] "other") OR ([other country] "")
didn't work. I tested the form in 'run this form' mode and I chose 'other'
from the[ country] drop down list but the form did not prompt me to enter
something in the [other country] text field. Is there is mistake with this
formula?

Thanks alot!

"Sue Mosher [MVP-Outlook]" wrote:

Do you also have validation text that displays a message to the user? (the 2nd formula box on the Validation tab) I think that's what this message is referring to.
--
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

"Gladys" wrote in message ...
In this form I am working on, I have two fields: [Country] (which is a drop
down combo box) and [Other country], a text field which will require input if
the country of choice is not available for the user.

For example, if the user chooses "other" from the drop down list of
[country], they will need to specify the country name in the [other country]
text field. I tried to use the following formula in the validation tab:

([country] "other") OR ([other country] "")

but I got an "error in validation text formula for 'other country' --
illegal right operand for IN".
What did i do wrong? I hope someone can help me out so I can stop banging my
head against the wall. Thanks





Sue Mosher [MVP-Outlook] July 14th 06 08:53 PM

Help with creating a validation
 
Thanks. I played around with the message text and realised that if my message
got too long, this error message pops up. Do you know if the message text is
restricted to a certain number of letters?


I think you've already answered that question through your own experimentation. Trust your results!

Also, the formula I've used: ([country] "other") OR ([other country] "")
didn't work. I tested the form in 'run this form' mode and I chose 'other'
from the[ country] drop down list but the form did not prompt me to enter
something in the [other country] text field. Is there is mistake with this
formula?


Outlook will prompt only when you save the item with Country = "other" and Other Country blank.
--
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

"Gladys" wrote in message ...
Thanks. I played around with the message text and realised that if my message
got too long, this error message pops up. Do you know if the message text is
restricted to a certain number of letters?

Also, the formula I've used: ([country] "other") OR ([other country] "")
didn't work. I tested the form in 'run this form' mode and I chose 'other'
from the[ country] drop down list but the form did not prompt me to enter
something in the [other country] text field. Is there is mistake with this
formula?



Gladys July 14th 06 10:56 PM

Help with creating a validation
 
One last question: Can I do wrap text in the text fields? It is so irritating
to scroll horizontally. Thanks!


"Sue Mosher [MVP-Outlook]" wrote:

Thanks. I played around with the message text and realised that if my message
got too long, this error message pops up. Do you know if the message text is
restricted to a certain number of letters?


I think you've already answered that question through your own experimentation. Trust your results!

Also, the formula I've used: ([country] "other") OR ([other country] "")
didn't work. I tested the form in 'run this form' mode and I chose 'other'
from the[ country] drop down list but the form did not prompt me to enter
something in the [other country] text field. Is there is mistake with this
formula?


Outlook will prompt only when you save the item with Country = "other" and Other Country blank.
--
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

"Gladys" wrote in message ...
Thanks. I played around with the message text and realised that if my message
got too long, this error message pops up. Do you know if the message text is
restricted to a certain number of letters?

Also, the formula I've used: ([country] "other") OR ([other country] "")
didn't work. I tested the form in 'run this form' mode and I chose 'other'
from the[ country] drop down list but the form did not prompt me to enter
something in the [other country] text field. Is there is mistake with this
formula?




Sue Mosher [MVP-Outlook] July 14th 06 11:27 PM

Help with creating a validation
 
Look for the Multiline setting on each control's Properties or Advanced Properties dialog.

--
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

"Gladys" wrote in message ...
One last question: Can I do wrap text in the text fields? It is so irritating
to scroll horizontally. Thanks!



Gladys July 15th 06 12:24 AM

Help with creating a validation
 
Thank you very very much! You're my lifesaver!

If i've got a checkbox with yes/no option [Is this a renewal ?]
with a text field beside it [please enter new contract number if it is a
renewal], can I use the following formula to force the user to enter a number
in the text field?

([Is this a renewal ?] "yes") OR ([please enter new contract number]"")



Sue Mosher [MVP-Outlook] July 15th 06 01:16 AM

Help with creating a validation
 
Close but not quite. A Yes/No property can have two values -- True or False -- and those are constants, not string literals, so no quote marks around them. See if you can finish the formula, given that info.

--
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

"Gladys" wrote in message ...
Thank you very very much! You're my lifesaver!

If i've got a checkbox with yes/no option [Is this a renewal ?]
with a text field beside it [please enter new contract number if it is a
renewal], can I use the following formula to force the user to enter a number
in the text field?

([Is this a renewal ?] "yes") OR ([please enter new contract number]"")




All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com