I am trying to create a slightly complicated report from some very simple data.
I have a database where we are documenting the date that each of 6 mandatory elements were completed on each patient admission. In my report, I am trying to display the number of cases that were missing x elements each day...for example, on 1/15/05, there were:
5 cases were missing 3 elements
7 cases were missing 2 elements
3 cases were missing 1 element
10 cases were missing 0 elements
Thus far, my report displays
- The total number of cases each day
- The total number of each element completed each day
- A list of each element (present or absent) displayed for each case
(this is only for calculation purposes, it will eventually be invisible)
- A count of the number of missing elements for each case.
I am ultimately trying to sum up this last item like the sample data listed above in my footer. However, my calculation for this gives me an error...
=DCount("[indvSum]","rptAdmissionData","[AdmissionDate]=[txtAdmissionDate] AND [indvSum]='1'")
(for this particular example, I am trying to find all the cases missing 1 element on a given date)
Any suggestions on what is wrong with this? I am guessing maybe you can't use DCount to look at a Detail-level control in the same report.
Thanks for any assistance you can offer!
I have a database where we are documenting the date that each of 6 mandatory elements were completed on each patient admission. In my report, I am trying to display the number of cases that were missing x elements each day...for example, on 1/15/05, there were:
5 cases were missing 3 elements
7 cases were missing 2 elements
3 cases were missing 1 element
10 cases were missing 0 elements
Thus far, my report displays
- The total number of cases each day
- The total number of each element completed each day
- A list of each element (present or absent) displayed for each case
(this is only for calculation purposes, it will eventually be invisible)
- A count of the number of missing elements for each case.
I am ultimately trying to sum up this last item like the sample data listed above in my footer. However, my calculation for this gives me an error...
=DCount("[indvSum]","rptAdmissionData","[AdmissionDate]=[txtAdmissionDate] AND [indvSum]='1'")
(for this particular example, I am trying to find all the cases missing 1 element on a given date)
Any suggestions on what is wrong with this? I am guessing maybe you can't use DCount to look at a Detail-level control in the same report.
Thanks for any assistance you can offer!
Last edited: