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


Formula to Join two strings not returning if string 2 is blank

Last post 07-09-2008 12:48 PM by Drew Allen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-08-2008 1:22 PM

    • Sasha Lewis
    • Not Ranked
    • Posts 9
    • Organization: Teach For America, Inc.
    • Products:  Blackbaud NetCommunity, The Financial Edge, The Raiser's Edge

    Formula to Join two strings not returning if string 2 is blank

    I am trying to join address line 1 and address line 2 into one field so I can import it back into RE. Becuase RE only allows for address lines I need to have the formual return:

    Address 1/nAddress 2

    My formula is {address 1}+"/n"+{address 2}

     It works if there is data in {Address 2} but if there is no data nothing is returned. I tried an If Then statement

    If {address 2} <> " " then {address 1}+"/n"+{address 2} else {address 1}

     This only returns the combination and not the value  of {address 1} if {address 2} is blank.

     HELP

    Sasha Lewis
    Database Development Manager
    PKD Foundation
    sashal@pkdcure.org
  • 07-09-2008 12:48 PM In reply to

    • Drew Allen
    • Top 10 Contributor
    • Posts 514
    • Organization: Children's Hospital of Philadelphia
    • Products:  The Information Edge, The Raiser's Edge

    Re: Formula to Join two strings not returning if string 2 is blank

     You need to use the IsNull() function to determine if the {address 2} field is null.  There is a difference between a null string and a zero-length string.  You're checking for a zero-length string.

    Drew 

    J. Drew Allen
    The Children's Hospital of Philadelphia
Page 1 of 1 (2 items)