Ok, last question.
The first formulas created a value of 1 for each record. But now I have the number of days a patient stayed in hospital. How would this get created in the sub report?
This doesn't work - it generates a value of 1.
//@Mth01
whileprintingrecords;
shared datevar Mth01start...
Ok, I got it!
I created another formula
//@resetoct to be placed in the subreport header:
whileprintingrecords;
numbervar sumoct := 0;
And it all works.
LB - thank-you so much for all your help - it is very much appreciated!
Sue :)
Thanks again. I got that working for the footer but now I want to add a group, and of course if I use that same formula then it does not work as it displays a running total up to the group.
Should be
Group 1 10 10
Group 2 15 5
Group 3 20 5...
Thank-you. I got the values of 1 to appear on the report, and now I can see why my summary won't work. It wont let me sum the detail values.
I tried to create a new formula:
//@OctSum
sum(@10Oct)
but it says the field cannot be summarized. How would I add up the 1's now they are in the...
Hi, thanks again.
I am also attempting to summarize my field.
But when I place it on my report in the details section it does not appear as 1.
I started a new report and did the following:
Main Report
//@SetDates
beforereadingrecords;
global DateVar OctStart ;
OctStart := Date(2004,10,01)...
Hi LB, thanks for the reply.
I changed the formula in the main report to:
//@SetDates
whileprintingrecords;
shared DateVar JanStart ;
JanStart := Date(2004,01,01);
But I still receive the same message in the sub report:
A summary has been specified on a non-recurring field. Details: @01Jan...
Hi
Crystal XI, SQL DB
I have 10 sub reports for a set of reports to show monthly patient data (Scary I know)
Jan Feb Mar Apr etc
SR1-Admissions
SR2-Discharges
SR3-PatientDays
SR4-Newborns
etc
I use sub reports because the data qualification in each may be 'slightly'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.