How to Find Distinct Records by Using DCount?

JithuAccess

Member
Local time
Today, 11:22
Joined
Mar 3, 2020
Messages
325
Hello Guys,

How can I use Distinct Function with DCount?

This is my Code

Code:
=DCount("[strEmp ID]","[tblMonthly Report Raw Data]","[datPayment Date] Between #2020-04-01# and #2020-04-30#")

I want to find the Unique Employee ID. there are Total 10 Employee IDs and 2 of them are Repeated and in my Report I want to show Just 8 Not 10.

Could you please let me know how to Fix this?

Thanks
 
I think you'd have to write something for that, dcount cannot
 
You could create a DISTINCT query and DCount() that.
 
Can we give something like [StrEmp ID]=Unique in the Criteria?

Thanks
No, not with the built-in DCount(). You could, as @Isaac said, create your own function that will allow you to do that.

Or, you could use this one:
 
No, not with the built-in DCount(). You could, as @Isaac said, create your own function that will allow you to do that.

Or, you could use this one:
Thank You. I will go with Query
 

Users who are viewing this thread

Back
Top Bottom