-----Original Message-----
Q1:
1) Use a subreport by linking it to the main report on a field common to
both the main and sub-report. Then make a field in the main report's footer
that uses the field in the subreport as a control source. OR 2)You can
actually have a main report with no control source if you wish. I've done
this for a database which I have to invoice about 20 different treatments
and on the main report footer I show total area treated and total $$ for
reimbursement. The main report takes the sums of the areas and $$ from the
subreports and sums them at the end of the report.
This sound familiar to your situation? There is a icon you click in design
view to add the subreports and you can size them as you wish.
Q2
I don't follow your explanation. Because if D<>E<>F why supress D and F from
your report? Only way to suppress those values would be to include and IIF
statement to filter them from the report. Or use code to suppress them,
which I avoid.
IIF([field1]="D" or [field1] = "F",null,[field1])
returns null if the field equals D or F
IIF([field1]<>"E" ,null,[field1])
returns null if the field is not equal to E
RE: your answer for question 1:
I want to show in my report footer, the value in a
DIFFERENT report header. . I want the sum of a number of
hours for a partcular group, and only the report
header/footer can calculate that.
How can I make the report show a value from a different
report header? (Via a subreport or otherwise)
For question 2:
There are no duplicates in the category header that the
report shows. There are a lot of duplicates in the
database that the report makes its calculations on.
So, I want the report to show this:
XX YY ZZ (page header) to show this: XX YY ZZ
1 a D (category header) 1 a
2 b