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 ELSE STATEMENT

Status
Not open for further replies.

whiteninja

IS-IT--Management
Jun 18, 2007
12
TT
Any help greatly appreciated:

If term code is equal to 'G' I want to display COD else display CHG.



Using the following with crystal 10

If {ORHDR.Terms} = "G"
then "COD"
Else "CHG"


getting keyword then is missing
 
I suspect that you are using Basic syntax. If so you would either need a "_" after the "G" or put the 'then "COD"' on the same line.
 
Change to crystal syntax - thanks a million man
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top