brunces
Registered User.
- Local time
- Today, 02:15
- Joined
- Sep 12, 2004
- Messages
- 45
Hi, friends.
I'm trying to count records in a report, using a filter but I'm not doing well with it...
In my report there are these fields:
- Car_Plate
- Car_Model
- Car_Color
Etc.
The report shows all the cars. But at the bottom, I want to count specific ones. For example:
Number of cars in color "BLUE":
I've tried these expressions (in a textbox)...
=DCount("*", "Car_Color = 'blue'")
=DCount("*", "ReportName", "Car_Color = 'blue'")
I know, there's something wrong, but I don't know what! And I'm sure it must be ridiculously simple!
In other post, I asked about counting records from a query, in a textbox in a report. A good friend, "theprez", answered me with this:
=DCount("*", "QueryName")
I just added the filter:
=DCount("*", "QueryName", "Car_Color = 'blue'")
And it worked very well! Exactly the way I needed.
But, what if I want to do the same count from the report itself? Or any other report as well?
Thank you all for the attention.
Hugz.
Bruno
I'm trying to count records in a report, using a filter but I'm not doing well with it...
In my report there are these fields:
- Car_Plate
- Car_Model
- Car_Color
Etc.
The report shows all the cars. But at the bottom, I want to count specific ones. For example:
Number of cars in color "BLUE":
I've tried these expressions (in a textbox)...
=DCount("*", "Car_Color = 'blue'")
=DCount("*", "ReportName", "Car_Color = 'blue'")
I know, there's something wrong, but I don't know what! And I'm sure it must be ridiculously simple!

In other post, I asked about counting records from a query, in a textbox in a report. A good friend, "theprez", answered me with this:
=DCount("*", "QueryName")
I just added the filter:
=DCount("*", "QueryName", "Car_Color = 'blue'")
And it worked very well! Exactly the way I needed.
But, what if I want to do the same count from the report itself? Or any other report as well?
Thank you all for the attention.
Hugz.
Bruno
Last edited: