Hi,
I have these two functions set in Textbox Control source:
Code:
=DCount("*";"RecordsFromAnotherTable")
Both textboxes are on same form. COUNT function is used to count records on this form, and DCOUNT is used to count records in different table. Both functions work, but when form has 0 records, both function stop working. No errors, but simply not displaying anything. I understand that COUNT should have problems with It, since It's recordsource is 0. But DCOUNT that counts records in another table ? What is wrong ?
I tried with Nz function for count (not working):
Code:
=Count(Nz([ID_Field];0))
Anybody have an idea ?