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

IIF Syntax

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
US
What comma did I miss in the IFF expression?

sum(Ledger.osexp + ledger.osloss)AS totalos,;
IIF((substr(clms.claimant,1,3)<>&quot;AGG&quot;),&quot;AGG&quot; as clmtprefix;
FROM mrcdata!clms left outer JOIN mrcdata!Ledger;

Program error : Missing comma(,)


 
DanNorris

There sould be another possibility for the IIF statement, its usually &quot;if this = that then use this, ortherwise use this&quot;. So in your case :
IIF((substr(clms.claimant,1,3)<>&quot;AGG&quot;,&quot;AGG&quot;,&quot;BHH&quot;) && Or whatever the alternate option is.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top