Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / January 2005

Tip: Looking for answers? Try searching our database.

Custom Form Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bucklebery - 13 Jan 2005 02:50 GMT
Hi - I am trying to write a simple formula that says if one of these 3
fields has a check mark
then put a Yes in the a new field

IIf( [SG1Active] = "Yes" Or [SG2Active] = "Yes" Or [SG3Active] = "Yes","Yes
","No")

But it doesn't work  It just says "No" whether or not there is a check in
the box!

Any Ideas what's wrong - I am using Outlook 2003.

Many thanks

Ian
Sue Mosher [MVP-Outlook] - 13 Jan 2005 03:44 GMT
It doesn't work because the value of the fields is True or False -- a
logical Boolean value -- not "Yes" or "No", which are string values.

If the new field is a text field, try it this way:

IIf( [SG1Active] = True Or [SG2Active] = True Or [SG3Active] =
True,"Yes","No")

FYI, there is a newsgroup specifically for Outlook forms issues "down the
hall" at microsoft.public.outlook.program_forms or, via web interface, at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public
.outlook.program_forms


Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi - I am trying to write a simple formula that says if one of these 3
> fields has a check mark
[quoted text clipped - 11 lines]
>
> Ian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.