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?
 
C

Chris Large

Hi

Assuming there are fields called DonationDate and
DonationAmt then:-

=Sum(IIf(Year(Now())=Year([DonationDate]),[DonationAmt],0))

as the control source of a text box placed in the subform
footer will give you the current year total

hth

Chris
 

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