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

If statement help

Status
Not open for further replies.

Stewman

MIS
Joined
Jan 23, 2002
Messages
79
Location
US
Hello,

Need some assistance with an if statement. It is returing values of true or false instead of other values I want.

Statement:
If {APPROVAL_LOG_HISTORY.APPLVL} = 2 and {APPROVAL_LOG_HISTORY.APPDESC} = 'approve' then {APPROVAL_LOG_HISTORY.ROLENM} = 'Final Approval'
else {APPROVAL_LOG_HISTORY.ROLENM} ={APPROVAL_LOG_HISTORY.ROLENM}

What I want is if approval level = 2 and description = approve then display in the Role column Final Approval. If it doesn't meet these requirements then display the Role value that it should be.

Any help appreciated!!
 
If {APPROVAL_LOG_HISTORY.APPLVL} = 2 and
{APPROVAL_LOG_HISTORY.APPDESC} = 'approve' then
'Final Approval' else
{APPROVAL_LOG_HISTORY.ROLENM}

-LB
 
Thanks for your help. I'm such a bonehead. Worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top