sorchard2000
Technical User
Crystal 8.5
SQL Server
I am trying to create a report that looks like:
date range (from end user putting in parameters.)
Group 1: Doctor's name
Group 2a: Name of patient that he did surgery on
Group 2b: Subreport listing items and cost (linked to main report)
Group 2c: Subreport listing imlants and cost (linked to main report)
Detail band: Surgeries performed on that patient (since a patient may have more than one surgery)
Group footer 2a: @totalcost formula showing sum of items and implants from subreports.
Report footer: @GrandtotalMD showing grand total of all costs and implants for that doctor.
current formulas:
//@GrandTotalMD
WhilePrintingRecords;
currencyVar TotalCost := TotalCost + {@TotalCost}
//@GrandTotalMDFooter
whileprintingrecords;
currencyVar TotalCost;
Problem is: @GrandTotalMD displays Grand Total of ALL surgeons in that date range instead of that individual surgeon in the Group 1. I need it to show that Surgeon Smith total (for 4 surgeries) is $xxx.xx.
Thanks so much for any help given.
sorchard2000
SQL Server
I am trying to create a report that looks like:
date range (from end user putting in parameters.)
Group 1: Doctor's name
Group 2a: Name of patient that he did surgery on
Group 2b: Subreport listing items and cost (linked to main report)
Group 2c: Subreport listing imlants and cost (linked to main report)
Detail band: Surgeries performed on that patient (since a patient may have more than one surgery)
Group footer 2a: @totalcost formula showing sum of items and implants from subreports.
Report footer: @GrandtotalMD showing grand total of all costs and implants for that doctor.
current formulas:
//@GrandTotalMD
WhilePrintingRecords;
currencyVar TotalCost := TotalCost + {@TotalCost}
//@GrandTotalMDFooter
whileprintingrecords;
currencyVar TotalCost;
Problem is: @GrandTotalMD displays Grand Total of ALL surgeons in that date range instead of that individual surgeon in the Group 1. I need it to show that Surgeon Smith total (for 4 surgeries) is $xxx.xx.
Thanks so much for any help given.
sorchard2000