S
Shanin
I've gone through past questions here and figured out how to get this to
work, but I was trying to make it a cleaner report and can't get this to work.
I have a Report with two subreports put in the detail section of the main
report. One subreport pulls schedule data, one pulls actual time worked.
The main report only pulls the "work_date" and "job", the two subreports are
linked by these two fields.
On the main report I have the report header, page header, job header, and
work_date header. Basically it sorts by job and then by date. I want the
total of subreports to be on the main report, and I have done that to an
extent.
I have the subreports having a work_date footer and totaling the daily
hours, it is called "daytotal". In the main report detail section I have a
field set to =[subreport].Report![daytotal] and set running sum to over all
and I have this field hidden. I have one for each sub-report. For the sake
of this it's named "runningtotal". I can then reference it in the Job footer
of the main report for a total for the job for the date span entered.
What'd I really like to do is get the day total in the main reports
work_date footer so that the totals from the two subreports are lined up
exactly side by side. I can get it to show the day totals if I set the
hidden field "runningtotal" in the detail section back to not calculating a
running sum and setting a field there equal to that. If I do this though, I
can't total by job anymore? Why can't I just reference the text box I made
in the main report work_date footer, say it's named "ScheduleTotal", and put
in the main reports job footer =Sum([ScheduleTotal])? This doesn't work of
course, but how can I get a total in the main report job footer if I move the
day totals to the main reports work_date footer?
I'm sure that sounds rambled, it's clear in my head but I'm sure not on paper.
Thanks
work, but I was trying to make it a cleaner report and can't get this to work.
I have a Report with two subreports put in the detail section of the main
report. One subreport pulls schedule data, one pulls actual time worked.
The main report only pulls the "work_date" and "job", the two subreports are
linked by these two fields.
On the main report I have the report header, page header, job header, and
work_date header. Basically it sorts by job and then by date. I want the
total of subreports to be on the main report, and I have done that to an
extent.
I have the subreports having a work_date footer and totaling the daily
hours, it is called "daytotal". In the main report detail section I have a
field set to =[subreport].Report![daytotal] and set running sum to over all
and I have this field hidden. I have one for each sub-report. For the sake
of this it's named "runningtotal". I can then reference it in the Job footer
of the main report for a total for the job for the date span entered.
What'd I really like to do is get the day total in the main reports
work_date footer so that the totals from the two subreports are lined up
exactly side by side. I can get it to show the day totals if I set the
hidden field "runningtotal" in the detail section back to not calculating a
running sum and setting a field there equal to that. If I do this though, I
can't total by job anymore? Why can't I just reference the text box I made
in the main report work_date footer, say it's named "ScheduleTotal", and put
in the main reports job footer =Sum([ScheduleTotal])? This doesn't work of
course, but how can I get a total in the main report job footer if I move the
day totals to the main reports work_date footer?
I'm sure that sounds rambled, it's clear in my head but I'm sure not on paper.
Thanks