G
Guest
I'm working on a query that counts how often certain types of contacts
happened between staff and clients, how many hours were spent on those
contacts, and how many clients were involved. For example, let's say, in
Feb. there were 10 visits between 7 clients. Those visits came to 13 hours
total. So, the query shows:
Visits Clients Hours
10 7 13
as the result.
There are several different types of contacts to calculate in this way and
in the end, I need to pull it all together into a final query, then a report.
The problem occurs when a particular type of contact doesn't happen in the
given time span. For example, a court appearance might not happen, so the
query result for that is empty. If I tie that into a final query for the
report, it makes the entire result set empty. How can I make it so that the
fields come back with 0's?
FYI: Due to the table design, there are zero's in the table fields that
have no numerical data, but I have to filter those out at the beginning so
that the count function in the query is correct.
Thanks!
happened between staff and clients, how many hours were spent on those
contacts, and how many clients were involved. For example, let's say, in
Feb. there were 10 visits between 7 clients. Those visits came to 13 hours
total. So, the query shows:
Visits Clients Hours
10 7 13
as the result.
There are several different types of contacts to calculate in this way and
in the end, I need to pull it all together into a final query, then a report.
The problem occurs when a particular type of contact doesn't happen in the
given time span. For example, a court appearance might not happen, so the
query result for that is empty. If I tie that into a final query for the
report, it makes the entire result set empty. How can I make it so that the
fields come back with 0's?
FYI: Due to the table design, there are zero's in the table fields that
have no numerical data, but I have to filter those out at the beginning so
that the count function in the query is correct.
Thanks!