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!

IIF Statement containing an OR operator

Status
Not open for further replies.

Adams

Technical User
Mar 10, 2001
44
0
0
US
Would you look at this IIF statement and tell me what I am doing wrong.

ServiceFee: IIf([Intkt] Like " 952*","SERVICE FEE/NON-ARC AIR" Or IIf([Intkt] Is Null And [tblNebExt].[invaln] Is Null,"NON-ARC AIR"))

 
I think this is what you are wanting to do:

Code:
iif([Intkt] Like " 952*", "SERVICE FEE/NON-ARC AIR", iif(]Intkt] Is Null AND [tblNebExt].[invaln] Is Null,"NON-ARC AIR", "Error"))

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top