A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating two different totals from a sub form



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2009, 03:24 PM posted to microsoft.public.access.forms
Dave K.
external usenet poster
 
Posts: 30
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.