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

IIf Statement in Query

Status
Not open for further replies.

Matt205

Technical User
Sep 25, 2001
3
AU
I have the following formula:

=IIf([Non Rent Guarantee]=0 Or IsNull([Non Rent Guarantee]),IIf([Customer Agents fees %]=0,Nz([Agents Fees %]/100*[RR]),Nz([Customer Agents fees %]/100*[RR])),"")

This formula works fine in a form but returns #Error in query.

Any suggestions?

Regards,
Matt

 
Try..
=IIf([Non Rent Guarantee]=0 Or IsNull([Non Rent Guarantee])=True,IIf([Customer Agents fees %]=0,Nz([Agents Fees %]/100*[RR]),Nz([Customer Agents fees %]/100*[RR])),"")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top