Solved

Compound dcount function

Posted on 2012-04-09
3
383 Views
Last Modified: 2012-04-09
I'm trying to use the following code and it bombs out, any suggestions... All I'm trying to do is count the number of records that have a checked box in one column and a null date field in another...Simple right???

Me.fldSA_No_PAA_Date.Value = DCount("[Employee No]", "tblSAARN", "[fldTOA_Privl] = yes" And "IsNull([fldPAA_Date])")

If I try the two conditions individually they both return the proper values but I try and concatenate them into the same dCount function it freaks out????
0
Comment
Question by:rondawg
  • 2
3 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 37825695
try this

= DCount("[Employee No]", "tblSAARN", "[fldTOA_Privl] = yes And [fldPAA_Date] Is Null")
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 37825700
or this

= DCount("[Employee No]", "tblSAARN", "[fldTOA_Privl] = yes And IsNull([fldPAA_Date])")
0
 

Author Closing Comment

by:rondawg
ID: 37825761
Excellent!!! You are the Bomb!!!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now