Solved

Compound dcount function

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

830 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