calculating value from other footers. Dsum?

M

Matt

I have built a report that calculates the number of lines, monthly revenue
and contract value for each of our regions (Southwest, Midwest, West, &
East). I have the report grouped by region so I have subtotals for each
region, and then a combined total at the bottom of the report for all sales.
What I would like to do is below the combined totals, add a field that
calculates what the total is for the Southwest region plus the West region,
but do not include the Midwest and east. Is this possible in a report?
 
D

Duane Hookom

You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want to
Sum] )
 
M

Matt

That worked. Thank you very much!!!!!!

Duane Hookom said:
You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want to
Sum] )

--
Duane Hookom
MS Access MVP
--

Matt said:
I have built a report that calculates the number of lines, monthly revenue
and contract value for each of our regions (Southwest, Midwest, West, &
East). I have the report grouped by region so I have subtotals for each
region, and then a combined total at the bottom of the report for all
sales.
What I would like to do is below the combined totals, add a field that
calculates what the total is for the Southwest region plus the West
region,
but do not include the Midwest and east. Is this possible in a report?
 
B

Barb

Could you help me. I have a sub form that has a "modifacation amount" for
several records. How can I subtotal each of those to a Total field on the
main form? Please let me know if you can help before I lose all my hair.
Thanks,
Barb.

Duane Hookom said:
You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want to
Sum] )

--
Duane Hookom
MS Access MVP
--

Matt said:
I have built a report that calculates the number of lines, monthly revenue
and contract value for each of our regions (Southwest, Midwest, West, &
East). I have the report grouped by region so I have subtotals for each
region, and then a combined total at the bottom of the report for all
sales.
What I would like to do is below the combined totals, add a field that
calculates what the total is for the Southwest region plus the West
region,
but do not include the Midwest and east. Is this possible in a report?
 
D

Duane Hookom

Total the records in a form footer of the subform. Then add a text box on
the main form with a control source like:
=sfrmControl.Form.txtTotal

--
Duane Hookom
MS Access MVP


Barb said:
Could you help me. I have a sub form that has a "modifacation amount" for
several records. How can I subtotal each of those to a Total field on the
main form? Please let me know if you can help before I lose all my hair.
Thanks,
Barb.

Duane Hookom said:
You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want to
Sum] )

--
Duane Hookom
MS Access MVP
--

Matt said:
I have built a report that calculates the number of lines, monthly
revenue
and contract value for each of our regions (Southwest, Midwest, West, &
East). I have the report grouped by region so I have subtotals for
each
region, and then a combined total at the bottom of the report for all
sales.
What I would like to do is below the combined totals, add a field that
calculates what the total is for the Southwest region plus the West
region,
but do not include the Midwest and east. Is this possible in a report?
 
B

Barb

Will this add up all the $ enteries in the subform and give me a total on my
main form? How do I format the expression? Sorry I am not very savy in this
stuff.

Duane Hookom said:
Total the records in a form footer of the subform. Then add a text box on
the main form with a control source like:
=sfrmControl.Form.txtTotal

--
Duane Hookom
MS Access MVP


Barb said:
Could you help me. I have a sub form that has a "modifacation amount" for
several records. How can I subtotal each of those to a Total field on the
main form? Please let me know if you can help before I lose all my hair.
Thanks,
Barb.

Duane Hookom said:
You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want to
Sum] )

--
Duane Hookom
MS Access MVP
--

I have built a report that calculates the number of lines, monthly
revenue
and contract value for each of our regions (Southwest, Midwest, West, &
East). I have the report grouped by region so I have subtotals for
each
region, and then a combined total at the bottom of the report for all
sales.
What I would like to do is below the combined totals, add a field that
calculates what the total is for the Southwest region plus the West
region,
but do not include the Midwest and east. Is this possible in a report?
 
D

Duane Hookom

To find out if this will "add up all the $ enteries in the subform and give
me a total on my main form", you should try it.

You should be able to format this text box like you would format any other
text box.

--
Duane Hookom
MS Access MVP
--

Barb said:
Will this add up all the $ enteries in the subform and give me a total on
my
main form? How do I format the expression? Sorry I am not very savy in
this
stuff.

Duane Hookom said:
Total the records in a form footer of the subform. Then add a text box on
the main form with a control source like:
=sfrmControl.Form.txtTotal

--
Duane Hookom
MS Access MVP


Barb said:
Could you help me. I have a sub form that has a "modifacation amount"
for
several records. How can I subtotal each of those to a Total field on
the
main form? Please let me know if you can help before I lose all my
hair.
Thanks,
Barb.

:

You can do this with an expression like:
=Sum( Abs([Region] ="Southwest" OR [Region]="West") * [Field you want
to
Sum] )

--
Duane Hookom
MS Access MVP
--

I have built a report that calculates the number of lines, monthly
revenue
and contract value for each of our regions (Southwest, Midwest,
West, &
East). I have the report grouped by region so I have subtotals for
each
region, and then a combined total at the bottom of the report for
all
sales.
What I would like to do is below the combined totals, add a field
that
calculates what the total is for the Southwest region plus the West
region,
but do not include the Midwest and east. Is this possible in a
report?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top