Avatar of gigifarrow
 asked on

Using DCount to count certain fields in a table

I have a tabel that has a field called, DIV. In those fields are name of companies.
I need the total of certain companies that are in the DIV field. I am using an unbound field to put this information in.  

So what Im trying to say is look in this table under div and find 190-HBCT and count how many times it appears. Then divide that number by 20 to get the total percentage completed by that unit.

Microsoft Access

Avatar of undefined
Last Comment

8/22/2022 - Mon

Are you saying that your DIV field has data such as 190-HCBT and 1CAV?  If so then these should work:


Is '190-HBCT' a field?  if so, try enclosing it and also 'DIV' in brackets.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Oops, as mbizup's answer shows, I forgot part of the argument in my response.  Looks like either his answer or trbaze's would work for you depending on how you have your fields set up.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck