Count function

G

Guest

I need a field at a level break in a report to give me the count of all
printed records where a certain date field contains a date. When I use this
syntax in the Control Source property, I get a total count of all records.
=Count(IsDate([MyDate]))

What should it be?

Thanks in advance,
 
D

Duane Hookom

Count() will count all values whether true or false. They are all counted
except for Nulls.

Try
=Sum(Abs(IsDate([MyDate])))
 
G

Guest

That worked great.
Thanks,
--
Glenn


Duane Hookom said:
Count() will count all values whether true or false. They are all counted
except for Nulls.

Try
=Sum(Abs(IsDate([MyDate])))

--
Duane Hookom
MS Access MVP

Glenn Suggs said:
I need a field at a level break in a report to give me the count of all
printed records where a certain date field contains a date. When I use
this
syntax in the Control Source property, I get a total count of all records.
=Count(IsDate([MyDate]))

What should it be?

Thanks in advance,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top