Hi,
I am using CR11 that hits an Oracle database to pull daily arrestee records.
I have created a main report and two sub-reports. The main report has the information regarding their unique ID as well as the location of arrest, one subreport has their information (name, height, weight, previous addresses) and other subreport has their charges (which can be multiple and in most cases has more than 2-3).
The problem that I have is that I need to group them in the main report depending on the seriousness of their crime class (Felony, Gross Misd etc.). As far as I remember, there is no way to group based on a passed variable from subreport to main report (it could have been so much easier). I can add the Crime Class to the main report and group based on that but it then duplicates each record (so if a person has been charged with 3 crimes and each with different category, he/she gets listed in each group once, instead of only getting listed in the highest Felony group).
Here is how currently the data looks:
ArrestDate BKNG# Location
06/29/09 00111 123 Main st
MIS 199.280.2 Resist arrest
MIS 200.485 Dom Bat (these coming from subreport)
06/29/09 00123 223 Center St
FEL 200.481 Battery w/ dead weap
MIS 266.750 Muni-Contempt (from subreport)
06/29/09 00222 2400 Nowhere St
GM 199.444 Consp to Commit Crime
MIS 266.001 FTA-Traffic (from subreport)
So I need it to group like this:
FEL
06/29/09 00123 223 Center St
FEL 200.481 Battery w/ dead weap
MIS 266.750 Muni-Contempt (from subreport)
GM
06/29/09 00222 2400 Nowhere St
GM 199.444 Consp to Commit Crime
MIS 266.001 FTA-Traffic (from subreport)
MIS
06/29/09 00111 123 Main st
MIS 199.280.2 Resist arrest
MIS 200.485 Dom Bat (these coming from subreport)
Any help is appreciated
Safa
I am using CR11 that hits an Oracle database to pull daily arrestee records.
I have created a main report and two sub-reports. The main report has the information regarding their unique ID as well as the location of arrest, one subreport has their information (name, height, weight, previous addresses) and other subreport has their charges (which can be multiple and in most cases has more than 2-3).
The problem that I have is that I need to group them in the main report depending on the seriousness of their crime class (Felony, Gross Misd etc.). As far as I remember, there is no way to group based on a passed variable from subreport to main report (it could have been so much easier). I can add the Crime Class to the main report and group based on that but it then duplicates each record (so if a person has been charged with 3 crimes and each with different category, he/she gets listed in each group once, instead of only getting listed in the highest Felony group).
Here is how currently the data looks:
ArrestDate BKNG# Location
06/29/09 00111 123 Main st
MIS 199.280.2 Resist arrest
MIS 200.485 Dom Bat (these coming from subreport)
06/29/09 00123 223 Center St
FEL 200.481 Battery w/ dead weap
MIS 266.750 Muni-Contempt (from subreport)
06/29/09 00222 2400 Nowhere St
GM 199.444 Consp to Commit Crime
MIS 266.001 FTA-Traffic (from subreport)
So I need it to group like this:
FEL
06/29/09 00123 223 Center St
FEL 200.481 Battery w/ dead weap
MIS 266.750 Muni-Contempt (from subreport)
GM
06/29/09 00222 2400 Nowhere St
GM 199.444 Consp to Commit Crime
MIS 266.001 FTA-Traffic (from subreport)
MIS
06/29/09 00111 123 Main st
MIS 199.280.2 Resist arrest
MIS 200.485 Dom Bat (these coming from subreport)
Any help is appreciated
Safa