Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCount Problem

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
I am trying to count a Yes/No [Home] value in a table called tblMemPOM. It should count the MemberID

=Abs(DCount("[MemberID]","tblMemPOM",[Home]=-1))

All help much appreciated.
 

DCount("[MemberID]","tblMemPOM","[Home]=-1")

I believe that DCount returns [always] non negative numbers!
 
I think Jerry hit the nail on the head.
If MemberID has any Null values, which I'm assuming no, those records will not be included in count.
Should always use Primary Key, for DCOunt.
...in case you didn't, but, I think you did.
 
Thanks Jerry and Zion 7, everything working fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top