on 10-28-2015 4:36 PM
I have a report that looks like this
hospital (group 1)
doctor who (group 2)
details .... details
group footer: clients without services: 2 (summary of details)
caseload: 55 (summary of details)
doctor John (group 2)
details... details
group footer: clients without services: 0
caseload: 32
primary care
doctor Jane
details... details
group footer: clients without services: 0
caseloads: 66
My question is how do I suppress all sections where clients without services= 0. I tried to do this using a formula in the section expert > suppress > formula. However it does not let me use a summary field in the formula. Thanks for the help!
The only way I can think of to do this requires a Command (SQL Select Statement). How are your SQL skills?
Basically the Command will pull the data for your groups and the sums for "clients without services" and "caseloads" - you'll set it up so that it doesn't pull data for docs who have no clients without services.
Then you would suppress the details section and in either a group2 header or footer create a subreport to get the details.
For more information about how to use commands, see here: .
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to reduce this process to one query?
*Oh and clients without services in my example is clients without services for 90 days.*
Right now in access:
Select d.doctor_id, , DateDiff("d", [last_date_of_service], date()) AS days INTO Table 1
from doctor as d
Where DateDiff("d", [last_date_of_service], date()) >= 90
Then I inner join Table 1 with doctor on doctor_id, so I get all the doctors patients and not just the ones with no services for 90 days.
Or what would be the process for doing this in a subreport? I have just begun using CR, so I am only slightly familiar with subreports.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.