I would like to count fields from related table with WHERE Statement.
For counting data from related table I used this statement.
=DCount("ID","Customers","AddressID=" & AddressID)
I have to count customers for each address that customer is registred with WHERE statement where I will check how many customers are banned for each address.
You can build up the where statement like so:
The third argument of domain aggregate functions such as DCount is the where statement (criteria), and you can use most of the expressions that you would use in a query in that argument.