subtotal in a form

M

Meryl

I have a donors subform that lists the donors giving
history and calculates a total. I would also like to put
a current year subtotal in the form's footer.

How can I do this?

Thx.
 
M

Marshall Barton

Meryl said:
I have a donors subform that lists the donors giving
history and calculates a total. I would also like to put
a current year subtotal in the form's footer.


You can use the aggregate functions in the report header or
footer to display totals of the records in the form's record
source.

The overall total would be:
=Sum(amount)

and a conditional total would be along these lines:
=Sum(IIf(Year(donationdate) = Year(Date(), amount, 0))
 

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