Skip to main content
Question

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

  • August 4, 2017
  • 0 replies
  • 19 views

Forum|alt.badge.img+12

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")