Forum Discussion

CarolMcconnell's avatar
CarolMcconnell
Qrew Captain
8 years ago

If formula on a field in a relation table not working.

I have a field on the main table that is a lookup field.  I tried to add a formula text field with this formula.

 If (IsNull([Target Region]),"Non-Target","Target")

It only brings back Target regardless.


  • Yep, the IsNull is documented not to work on text fields,. Not intuitive, I know and many before you have fallen in that same pothole.  So you need to compare it to empty quotes.  I like to Trim it just in case it has some invisible spaces in the data

    If (Trim([Target Region])="","Non-Target","Target")
    • CarolMcconnell's avatar
      CarolMcconnell
      Qrew Captain
      Thank you so much, that worked perfectly.  I'll try and remember this in the future.