I am trying to populate data in a subreport based on the output in the main report. Below is a generic example of what I am trying to accomplish. A subreport may not even be the way to do this but that was my initial thought.
Main report
Group 1 - Location
Group 2 - Room
Group 3 - Bed
I have in Group 3 a list of patients that are assigned a bed. Each bed correlates to a room at a location (Hierarchy is Locatoin/Room/Bed). When a patient is assigned a bed, they are also linked to a program. For Example:
Bed Patient Name Program
A John Doe 100
B Jane Doe 101
C Carl Doe 100
That report is working great. Now in my subreport I want it to give me a total of the number of patients that are associated to a program. For example:
Subreport expected outcome:
Program Total number of patient
100 2
101 1
This needs to populate for each Location which right now I have it populating in Group Footer 1.
There are many more programs that are setup in the database but I ONLY want to show and print the totals for the programs that appear in my main report and DO NOT show any information for the programs that are not listed in the main report.
I am using Crystal XI. Any help would be greatly apprecaited.
-crachic
Main report
Group 1 - Location
Group 2 - Room
Group 3 - Bed
I have in Group 3 a list of patients that are assigned a bed. Each bed correlates to a room at a location (Hierarchy is Locatoin/Room/Bed). When a patient is assigned a bed, they are also linked to a program. For Example:
Bed Patient Name Program
A John Doe 100
B Jane Doe 101
C Carl Doe 100
That report is working great. Now in my subreport I want it to give me a total of the number of patients that are associated to a program. For example:
Subreport expected outcome:
Program Total number of patient
100 2
101 1
This needs to populate for each Location which right now I have it populating in Group Footer 1.
There are many more programs that are setup in the database but I ONLY want to show and print the totals for the programs that appear in my main report and DO NOT show any information for the programs that are not listed in the main report.
I am using Crystal XI. Any help would be greatly apprecaited.
-crachic