I have a database which is keeping track of all the visits done by a group of monitoring officers. Now I need to create a query to add the number of visits actually done by each monitoring officer. I have used the following:
Name of Field: Sum(IIf([Monitoring Visit 2 Date] Is Not Null,1,0))
This is working in that if the field is empty I am provided with a zero, if a date is inputted in the field I am provided with 1. However when I am trying to add these numbers (I have 6 monitoring visit fields in total), a Parameter Value box is popping up asking me for the same fields.
There are no mistakes in the field titles so that isn't it. What could be the issue?
Name of Field: Sum(IIf([Monitoring Visit 2 Date] Is Not Null,1,0))
This is working in that if the field is empty I am provided with a zero, if a date is inputted in the field I am provided with 1. However when I am trying to add these numbers (I have 6 monitoring visit fields in total), a Parameter Value box is popping up asking me for the same fields.
There are no mistakes in the field titles so that isn't it. What could be the issue?