Hello, I'm having a problem with a form and was hoping someone can help.
I have things assigned to individuals and those things are in different status. I have a crosstab query to count the number of things in each category, per individual. I have a form based off of this crosstab query.
Please see the attached images. The problem that I have is, when there is at least one thing in each status, the form is displayed correctly with no errors. However, if there are no things assigned to a particular category (which in cases, there might be no things assigned to that status), it shows the #Name error. I understand why it's showing the error (that field is not in the crosstab since no things are assigned to that status).
What I need it to do is, if this field is not in the crosstab, show 0 or nothing at all. I tried the Nz function on the form but that don't seem to work. HasData doesn't work in forms so I'm at a loss.
Anyone know what I could do?
I have things assigned to individuals and those things are in different status. I have a crosstab query to count the number of things in each category, per individual. I have a form based off of this crosstab query.
Please see the attached images. The problem that I have is, when there is at least one thing in each status, the form is displayed correctly with no errors. However, if there are no things assigned to a particular category (which in cases, there might be no things assigned to that status), it shows the #Name error. I understand why it's showing the error (that field is not in the crosstab since no things are assigned to that status).
What I need it to do is, if this field is not in the crosstab, show 0 or nothing at all. I tried the Nz function on the form but that don't seem to work. HasData doesn't work in forms so I'm at a loss.
Anyone know what I could do?