Dcount problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I recommend against using domain aggregate functions in reports. However, try:
=DCount("LastName","[tblPositions]","IsNull(LastName) = 0")
Or create a query from tblPositions where LastName is not null. Replace the
table names with the query name
=DCount("*","qselHasLastName")
 
I need a Dcount total.


=DCount("LastName","[tblPositions]","LastName")
Gives me the total records but it counts the nulls too.
I read on google that Dcount does not count nulls.
However, my Dcount is counting nulls.
How do I count only the Is not Null records?

=DCount("LastName","[tblPositions]","LastName = is not null")
This gives me error.
 
Jay said:
I need a Dcount total.


=DCount("LastName","[tblPositions]","LastName")
Gives me the total records but it counts the nulls too.
I read on google that Dcount does not count nulls.
However, my Dcount is counting nulls.
How do I count only the Is not Null records?

=DCount("LastName","[tblPositions]","LastName = is not null")
This gives me error.


I found the problem. I used an update sql and updated with ''
instead of Null.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Dcount (multiple criteria) 3
Compare and warn "not there" 2
Access MS Access DCount function problem 0
dcount 2
access report DCount function 4
very slow report with dcount() 6
Get Sums for 2 DCount fields on report 1
DCount Error 6

Back
Top