Calculating Grand Total

H

Harry

Using a subform I do calculate the costs of a specific kind of expenses.
The kind of expenses are selected in the primary form using a combobox.
Withing the subform now I want to have a textfield with the grand total of
all expenses within the expense table.
For the expenses of a specific kind I use =sum([me.expenseprice]) but what
to do for the grand total?
 
H

Harry

Hi Alex,
Sorry, but I get an error telling me that I use wrong separator and so on
using dsum.
using =Sum([Expenses]![ExpenseBedrag]) gives me within the sub-form ofcourse
the same value.

Alex Dybenko said:
Hi,
you can try to use DSum:

=DSum("expenseprice","YourExpensesTable")

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

Harry said:
Using a subform I do calculate the costs of a specific kind of expenses.
The kind of expenses are selected in the primary form using a combobox.
Withing the subform now I want to have a textfield with the grand total of
all expenses within the expense table.
For the expenses of a specific kind I use =sum([me.expenseprice]) but what
to do for the grand total?
 
A

Alex Dybenko

Hi,
then try to use semicolon:

=DSum("expenseprice";"YourExpensesTable")

and do not forget to put correct table/field names there

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com


Harry said:
Hi Alex,
Sorry, but I get an error telling me that I use wrong separator and so on
using dsum.
using =Sum([Expenses]![ExpenseBedrag]) gives me within the sub-form
ofcourse
the same value.

Alex Dybenko said:
Hi,
you can try to use DSum:

=DSum("expenseprice","YourExpensesTable")

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

Harry said:
Using a subform I do calculate the costs of a specific kind of
expenses.
The kind of expenses are selected in the primary form using a combobox.
Withing the subform now I want to have a textfield with the grand total
of
all expenses within the expense table.
For the expenses of a specific kind I use =sum([me.expenseprice]) but
what
to do for the grand total?
 
H

Harry

Thanks, Alex,
It works.

greetings
Harry

Alex Dybenko said:
Hi,
then try to use semicolon:

=DSum("expenseprice";"YourExpensesTable")

and do not forget to put correct table/field names there

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com


Harry said:
Hi Alex,
Sorry, but I get an error telling me that I use wrong separator and so on
using dsum.
using =Sum([Expenses]![ExpenseBedrag]) gives me within the sub-form
ofcourse
the same value.

Alex Dybenko said:
Hi,
you can try to use DSum:

=DSum("expenseprice","YourExpensesTable")

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

Using a subform I do calculate the costs of a specific kind of
expenses.
The kind of expenses are selected in the primary form using a combobox.
Withing the subform now I want to have a textfield with the grand total
of
all expenses within the expense table.
For the expenses of a specific kind I use =sum([me.expenseprice]) but
what
to do for the grand total?
 

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