How to make a sum of a sub-form on the main form

P

Patrick

Is it possible to have a sum formula on a main form that calculates with data
from a sub-form?

I have a subform in datasheet format with several colums.
This datasheet also has the "new record" line.
On the main form I want to have a summ of each (sub-form)colum
I want to keep the sub-form in datasheet format for good reasons.
The sub-form uses a different recordsource than the main form.
The sub-forms recordsource is a dynamic query that get's updated/filtered
with settings made on the main form.
Can a formula refer to a query field?
 
P

Patrick

Thanks Karl,
Found that:
total = DSum("[field1]", [subform].[Form].[RecordSource])
did the trick.
 

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