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!

Multiple conditions on iif

Status
Not open for further replies.

krisboy

Technical User
Mar 4, 2002
16
0
0
AU
Hello all!

I have a very simple statement on a report which reads:

=Sum(IIf([Current_Category]="A" & [Response_Met]=1,1,0))

This is to provide a count of those records in a table where the category is A and the response time has been met (=1). Perhaps I have overlooked something, or haven't got the syntax quite right, but does anyone know why zero is returned, when the number of records should be more than this?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top