View Full Version : total from subform


wboender
12-10-2001, 02:40 AM
I have a form with two subforms. I want to display a total of the hours from the subform's one table. I thought that this should do the trick:

=Sum([Forms]![activityregistration Subform]![hours])

But it gives an error only. Suggestions?

Rich
12-10-2001, 03:29 AM
Put the Sum in the subform footer and refer to it on the main form.
Sum([hours])

Sum([Forms]![activityregistration Subform]![newTxtBox])

wboender
12-10-2001, 04:37 AM
Thanks Rich. It works with:
=[activityregistration Subform]![newTxtBox])