Solved

Compound dcount function

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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.

895 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