Calculating two different totals from a sub form

D

Dave K.

I have a form that includes two sub forms that are link together. subformA
and SubformB. SubformA is linked to the Parent form FormA and SubformB is
linked to SubformA. When I select from the list of items in subformA the the
proper list shows in subformB ok. the problem is that the detail list in
subformB has a date fiield that reflects dates from 2009 and 2008 and a
Dollar figure for each date called the amount field. I want to show a total
in the parent form formA to reflect the totals for 2008 and 2009 in two
different fields on formA. Example

SubformA
MeterNumber SupplierName
4446900 Pitney Bowes

SubFormB
Date Amount
07/01/2009 3000
04/22/2009 3000
01/22/2009 3000
11/07/2008 3000
08/22/2008 3000
06/11/2008 42
05/27/2008 3000
03/18/2008 3000

I to show in the main form
Total 2009: $9,000.00
Total 2008: $12,042.00

Right now it works but it shows the sum for both
Total 2009: 21,042.00

I don't have a field set for 2008 yet.
 

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