I have 2 fields that I need to use in an expression:
Address Emerg_Contact
C/O John blank
C/O Sam null
C/O Jane Jones,Sam
Expression needed:
Emerg_Contact has data then take the data after the comma, add a space then take the data before the comma so Jones, Sam becomes Sam Jones, etc.
else if
emerg_contact is null or blank and Address has "C/O" then take the next character it finds after the "C/O" in the Address so the first record it would retrieve John. Note: I mentioned next character after the "C/O" becomes sometimes more than 1 space is entered after the "C/O"
Help is very appreciated.
Address Emerg_Contact
C/O John blank
C/O Sam null
C/O Jane Jones,Sam
Expression needed:
Emerg_Contact has data then take the data after the comma, add a space then take the data before the comma so Jones, Sam becomes Sam Jones, etc.
else if
emerg_contact is null or blank and Address has "C/O" then take the next character it finds after the "C/O" in the Address so the first record it would retrieve John. Note: I mentioned next character after the "C/O" becomes sometimes more than 1 space is entered after the "C/O"
Help is very appreciated.