On Sun, 31 Aug 2003 23:18:20 GMT, "trettr" <(E-Mail Removed)> wrote:
>
>
>> Try using the IIF function to generate a number that you can sum:
>>
>Sorry why the first part
>>Sum(IIF([A] = 'YES'
>there is after the above condition
>>, 1, 0)
>while in the second part
>>Sum(IIF([A] = 'NO'
>there isn't the same string?
Because I was typing hastily and made a mistake. There should be.
The IIF() function has three arguments: a logical expression (i.e.
[A]='Yes'); a value to return if the expression is True; and a value
to return if it is False.
Sorry for the confusing and wrong answer - but it seems you figured
out the right one!
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public