Count with expression

labbadabba

Registered User.
Local time
Today, 02:30
Joined
Nov 16, 2005
Messages
19
Hello all,

I'm trying to perform a count function that tells me how many accounts are over $25,000 and have more than $10,000 commission. The expression I tried is below but it gave me the total number of accounts.

I need this report by tonight, any help would be very welcome.

Thanks,
Ty


=Count([QRY_Japan_0306]![MARKET VALUE]>25000 And [QRY_Japan_0306]![YTD2006 REVENUE]>10000)
 
Try this


SELECT Count(IIf([QRY_Japan_0306]![MARKET VALUE]>25000 And [QRY_Japan_0306]![YTD2006 REVENUE]>10000,0)) AS Total
FROM YourTable;

It should work
 

Users who are viewing this thread

Back
Top Bottom