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!

ADD LETTER TO FIELD BASED ON FORMULA 1

Status
Not open for further replies.

BoeingSK

Technical User
Nov 2, 2007
36
0
0
US
I need to add letters to a field based on a conditional formula is this possible? This is what I have please tell me where I am going wrong.

IF {Command.DOC_CATEGORY}="SO" THEN 'S{Command.DOC_CATEGORY}'
ELSE IF {Command.DOC_CATEGORY} = "RF" THEN 'R{Command.DOC_CATEGORY}'

I want the field to show as either S4000 or R4000 based on which category it is in.

Up and Coming Technical Guy
 
Try:

IF {Command.DOC_CATEGORY}= "SO" THEN
"S" & {Command.DOC_CATEGORY}
ELSE IF {Command.DOC_CATEGORY} = "RF" THEN
"R" & {Command.DOC_CATEGORY}


Andy
 
That was perfect, thank you! I'll be glad when the day comes that i can answer some of the questions.

Up and Coming Technical Guy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top