Query adding dates

oni1983

New Member
Joined
Jul 9, 2015
Messages
25
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?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
It sounds like as if it does not recognize those fields as being in your data sources of your query.
Can you post the SQL code for your query, and the exact error message?
 
Upvote 0
Sorry for the late reply! I solved the issue but creating a query on the original query and it worked!!!
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,166
Members
451,750
Latest member
dofrancis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top