Hi,
I am having problem with counting records.
On my form the user selects one value from a dropdown box (Which is controlled by a table). I want to be able to display all the values from the table on a report. And count the number of times they have been selected in the form. I will also need to display the items from that table that where not selected.
I can do this using a LEFT join query, then on the report I used a unbound text box using the Count(*) function, which displayed the correct values for the items that where selected. My problem is that for the items that were not selected (Which ARE displayed on the report) a figure of 1 is added in the count field.
Does any one know how to change the 1 to a 0 (which is the correct value. I know the Count(*) function is incorrect)
Here is an example of what I am getting in my report
Category Type Actual Count (What I Want)
X enquiry 2 2
y enquiry 3 3
z enquiry 3 3
a enquiry 1 0
b enquiry 1 0
c enquiry 2 2
d enquiry 5 5
The Items with a 1 as the actual count are items that where not selected, I want these items to be displayed as Zero
Hope this is clear as to what I am hoping to achieve
Also I will have a criteria date search.
Hope someone can help
I am having problem with counting records.
On my form the user selects one value from a dropdown box (Which is controlled by a table). I want to be able to display all the values from the table on a report. And count the number of times they have been selected in the form. I will also need to display the items from that table that where not selected.
I can do this using a LEFT join query, then on the report I used a unbound text box using the Count(*) function, which displayed the correct values for the items that where selected. My problem is that for the items that were not selected (Which ARE displayed on the report) a figure of 1 is added in the count field.
Does any one know how to change the 1 to a 0 (which is the correct value. I know the Count(*) function is incorrect)
Here is an example of what I am getting in my report
Category Type Actual Count (What I Want)
X enquiry 2 2
y enquiry 3 3
z enquiry 3 3
a enquiry 1 0
b enquiry 1 0
c enquiry 2 2
d enquiry 5 5
The Items with a 1 as the actual count are items that where not selected, I want these items to be displayed as Zero
Hope this is clear as to what I am hoping to achieve
Also I will have a criteria date search.
Hope someone can help