Welcome to Forums Sign in | Join | Help | Forums
in Search


If {field} contains

Last post 10-06-2009 3:44 PM by Patrick Manning. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-06-2009 2:50 PM

    • Bryce Katzman
    • Top 200 Contributor
    • Posts 43
    • Organization: Farm Sanctuary
    • Products:  The Raiser's Edge

    If {field} contains

    Greetings All,

    It is easy enough to use IF in this manner:

    If {CnGf_1Note_1.CnGf_1Note_1_Actual_Notes} = "Host Committee 2008 - Gala" Then

    "Host"

    Else

     " "

     

    But what function could be used to see if the field contatins "Host" rather than equals? I need this to be more flexible than looking for "Host Committee 2008 - Gala".

     

    The LEFT function works okay for this, but I think contains would be better.

     

    Thanks!

    Bryce

     

  • 10-06-2009 3:27 PM In reply to

    • Patrick Manning
    • Top 200 Contributor
    • User Since: 1997
    • Posts 45
    • Organization: College of Charleston
    • Products:  The Raiser's Edge

    Re: If {field} contains

    If "Host" in {CnGf_1Note_1.CnGf_1Note_1_Actual_Notes} Then "Host"

     

    (Also, you don't need the "else" portion of the formula.  If the statement is false, nothing will show up anyway)

    Patrick Manning
    Database Administrator
    Advancement Services
    College of Charleston
  • 10-06-2009 3:32 PM In reply to

    • Bryce Katzman
    • Top 200 Contributor
    • Posts 43
    • Organization: Farm Sanctuary
    • Products:  The Raiser's Edge

    Re: If {field} contains

    It worked. 

    Thank you sir. You're a legend!

  • 10-06-2009 3:44 PM In reply to

    • Patrick Manning
    • Top 200 Contributor
    • User Since: 1997
    • Posts 45
    • Organization: College of Charleston
    • Products:  The Raiser's Edge

    Re: If {field} contains

    Happy to help.

    Patrick Manning
    Database Administrator
    Advancement Services
    College of Charleston
Page 1 of 1 (4 items)