Solved DCount and Like

JithuAccess

Member
Local time
Today, 15:23
Joined
Mar 3, 2020
Messages
325
Hi,

This is my code to find the total number of Denials in an Application and I want to use Like

Code:
=DCount("[strID]","[tblMaster Table]","[datDate Application Received] between DateSerial(Year(Date())-1,4,1) And DateSerial(Year(Date())+0,3,31) And [strStatus of Application] like "*" &  'Denied' & "*"")

But I am getting "#Type!" Error message. Could you please let me know what I have done wrong?

Thanks
 
What happens if you change the concatenation?
=DCount("[strID]","[tblMaster Table]","[datDate Application Received] between DateSerial(Year(Date())-1,4,1)
And DateSerial(Year(Date())+0,3,31)
And [strStatus of Application] like '*Denied*'")

====
too slow....
 
But I am getting "#Type!" Error message. Could you please let me know what I have done wrong?
try this, splitting into substrings for clarity, for the forum

Code:
=DCount("[strID]",
"[tblMaster Table]",
"[datDate Application Received]
 between DateSerial(Year(Date())-1,4,1)
 And DateSerial(Year(Date())+0,3,31)
 And [strStatus of Application] like '*Denied'*")
 

Users who are viewing this thread

Back
Top Bottom