I have this statement
so if long_text is asdfsf/sdfs
it will return asdfsf
and if its
asdfsf
it will return asdfsf
But alas... When there's no "/" in the long_text, instr evaluates to 0 and left throws an error and iserror is only good for numeric items. Is there something better than iserror, or do I have to do something like instr()>0.
Code:
iif(iserror(left(long_text,instr(long_text,"/")),long_text,left(long_text,instr(long_text,"/")))
so if long_text is asdfsf/sdfs
it will return asdfsf
and if its
asdfsf
it will return asdfsf
But alas... When there's no "/" in the long_text, instr evaluates to 0 and left throws an error and iserror is only good for numeric items. Is there something better than iserror, or do I have to do something like instr()>0.