sum on form

G

Guest

I have a subform (ECSFinancials) that is embedded in the MasterForm in
Datasheet view. It lists payments made on a file (ECSIndemnity). I want to
tally those payments on my MasterForm and either get the total for all the
files or the most recent payment on a file. If there are no payments on the
file, then I get the #Error message in the box.

Can someone help me? I've read through the previous posts, but none of the
suggestions have worked. I also have a query doing the sum, but I can't pull
that into the form, either.

Thanks!
 
G

Guest

Thanks for responding so quickly!

Since the Field is in a subform, shouldn't I have to address the name of the
subform somehow?

I did try your recommendation and got an #Error.

Thanks!
-Pat
 
J

Jeff L

Yes. =Nz(Sum(Forms!MasterForm!ECSFinancials!Payments))

If your field is not called Payments on your subform, then substitute
the correct name.
 
G

Guest

Oh bummer - I still have an #Error in the field. sigh. Hmmm - any other
thoughts?
Thanks!
-Pat
 
J

Jeff L

Try this:
Put a textbox on the subform and call it SumOfPayments. Change the
visible property to No. Put =Nz(Sum(Payments)) in the text box. On
the main form, put
=Forms!MasterForm!ECSFinancials!SumOfPayments
 

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