Hello everyone!
I have the following problem:
I need to delete the last number after "-" only if it's equal to 301
For example
Thanks!
I'm not sure what is going on with that statement...
This one definitely does.
ifright([input],3) = "301"thenLeft([input],Length([input])-4) else [input] endif
trimright([field],"-301")
Ben
It doesn't work
Okay so it looks like the trimright([field],"-301") function was looking for any of the characters in -301 at the end of the string and replacing them with nothing; I thought it would do the entire string only.
Anyway, the second solution I have provided should be adequate!
Always learning!