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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If/Then Statement 2

Status
Not open for further replies.

Meg09

Technical User
Jan 30, 2009
14
US
Hi,

I am trying to write an if/then statement. I have a code that is five digits long. What I want the formula to do is if the last digit of the code is a '1', then I want the word 'Manager' in my report. I tried the following:

if {emp_person.distribution_code} = 'xxxx1' then 'Manager'

Any suggestions would be appreciated. Thanks!
 
if right({emp_person.distribution_code},1) = "1" then
"Manager"

This assumes that the code is a string.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top