Re: Adding two subtotals from two subreports in a main report
- From: Renee <Renee@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Nov 2006 12:47:02 -0800
Once I try putting the brackets around them and go to view the report it
comes up with a box saying to enter parameter value for LABOUR R.
"Duane Hookom" wrote:
Either remove the spaces from your object names (my preference) or place.
brackets around them.
=[LABOUR R].Report![LABOUR SUBTOTAL] + [PARTS R].Report![PARTS SUBTOTAL]
--
Duane Hookom
MS Access MVP
"Renee" <Renee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BD31AEBD-C146-4ED1-BBB5-376F0398C820@xxxxxxxxxxxxxxxx
So I put that control source in and once I press tab to get to the next
field
it gives an error: The expression you entered contains invalid syntax. You
may have entered and operand without and operator. This is what I typed
in:
=[LABOUR R].Report!LABOUR SUBTOTAL + [PARTS R].Report!PARTS SUBTOTAL
So my subreport names are LABOUR R & PARTS R the subtotal fields are
called
LABOUR SUBTOTAL & PARTS SUBTOTAL
"Duane Hookom" wrote:
If both subreports
- are in the same report section and
- will always contain records and
- they have a text box named "txtRptTotal" containg the subtotals
You can create a text box in the main report with a control source like:
=[SWO R].Report!txtRptTotal + [LABOUR R].Report!txtRptTotal
If you don't find success, come back with some real values for us.
--
Duane Hookom
MS Access MVP
"Renee" <Renee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9CAB1C48-B8E5-4349-BE26-39118A21AC60@xxxxxxxxxxxxxxxx
I have a report called SWO R that has two subreports in it called LABOUR
R
and PARTS R. Both of these subreports have subtotals in them created
using
a
text box and I would like to add the two subtotals together in the main
report but I can't seem to get it to work. Does anyone have any ideas
of
how
I can do this?
- Follow-Ups:
- Re: Adding two subtotals from two subreports in a main report
- From: Duane Hookom
- Re: Adding two subtotals from two subreports in a main report
- References:
- Re: Adding two subtotals from two subreports in a main report
- From: Duane Hookom
- Re: Adding two subtotals from two subreports in a main report
- From: Duane Hookom
- Re: Adding two subtotals from two subreports in a main report
- Prev by Date: Re: Adding two subtotals from two subreports in a main report
- Next by Date: Re: problem with instr function and field in db.
- Previous by thread: Re: Adding two subtotals from two subreports in a main report
- Next by thread: Re: Adding two subtotals from two subreports in a main report
- Index(es):
Relevant Pages
|
|