If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Calculating two different totals from a sub form
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. -- Dave K. |
Thread Tools | |
Display Modes | |
|
|