Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

contains

Status
Not open for further replies.

jschill2628

Programmer
Nov 3, 2009
156
US
I have a field that I need to decode, is there a way to the field, with out decoding each individual name. For example I have 2 separate building, one is call ABCD, and one is WXYZ, and they both have a department manager, denoted by DM. So currently it reads:

ABCD DM
WXYZ DM

Is there a way to write a formula so that it would pick up the DM, and I could change it to read Department Manager?
 
if the 'DM' is always the last 2 characters, you could use:
//{@label}
IF RIGHT(TRIM({yourtable.deptfield}),2)="DM"
THEN "Department Manager"
ELSE "" //put whatever other value you would want between the quotes if you do not want it blank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top