Solved

Compound dcount function

Posted on 2012-04-09
3
391 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 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 37825695
try this

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

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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