G
Guest
I am using a text box control to count specific records in a table field but
can't get it to work. If I count all the records it's simple Count(*). But
what I want to do is count the content of a boolean control that takes a
check in it. Let's say the table has one hundred records, the control that is
used to enter data into the field (which is a true/fales, yes/no field) is
either checked or not. If it is checked I don't want to count it, this
indicates that a matter has been cleared. So, if twenty records are checked
my record counter should return 80 since these matters are still open. I
tried this code but it did not work: DCount("[Myfield]", "Mytable",
"[Myfield] Is Null") Anyone out there know how to handle this? Thanks
can't get it to work. If I count all the records it's simple Count(*). But
what I want to do is count the content of a boolean control that takes a
check in it. Let's say the table has one hundred records, the control that is
used to enter data into the field (which is a true/fales, yes/no field) is
either checked or not. If it is checked I don't want to count it, this
indicates that a matter has been cleared. So, if twenty records are checked
my record counter should return 80 since these matters are still open. I
tried this code but it did not work: DCount("[Myfield]", "Mytable",
"[Myfield] Is Null") Anyone out there know how to handle this? Thanks