S
Steve G
Hi All:
Back again
Access 2002
I am trying to determine the record acount being returned in a query. So
long as there are records meeting the criteria of the query, using the
aggregate function of count, it works well. However, if there are no records
returned, I need to display a count of 0 instead of just a blank recordset.
I've tried creating a new query, using the original query as the record set
and the following iif statement:
Count: IIf(Not IsNull([CountOfPatientStatus]),"0")
However, when I run this query, I either get a blank record set, or if I use
this with criteria that I know will return a count, I get a value of 0
instead of the actual count.
Can anyone help me out with this?
TIA
Steve G
Back again
Access 2002
I am trying to determine the record acount being returned in a query. So
long as there are records meeting the criteria of the query, using the
aggregate function of count, it works well. However, if there are no records
returned, I need to display a count of 0 instead of just a blank recordset.
I've tried creating a new query, using the original query as the record set
and the following iif statement:
Count: IIf(Not IsNull([CountOfPatientStatus]),"0")
However, when I run this query, I either get a blank record set, or if I use
this with criteria that I know will return a count, I get a value of 0
instead of the actual count.
Can anyone help me out with this?
TIA
Steve G