Results 1 to 4 of 4
  1. #1
    christ153 is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2013
    Posts
    3

    Adding two separate sub-form totals on main form


    Hi all,
    I have a main form that has two subforms in it. Each subform has a total of a price column in it. I want to be able to show the sum of both of these totals on the bottom of the main form. How would I go about doing this?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    the easiest way is probably to have a field on your main form with a controls source of

    =[Forms]![MainForm]![Subform1]![TotalField] + [Forms]![MainForm]![Subform2]![totalfield]

    where you'd substitute in your main form and subform names and the NAMES of the fields that contain the totals within those subforms.

  3. #3
    christ153 is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2013
    Posts
    3
    I have a query that calculates this, I was just wondering how to show this in the text box on the form, and how to make it update automatically when you add more items in the subform.

  4. #4
    christ153 is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2013
    Posts
    3
    Awesome, I got it, thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 11-18-2012, 12:54 PM
  2. Replies: 11
    Last Post: 01-09-2012, 11:40 AM
  3. Totals from subform to main form
    By kathi2005 in forum Forms
    Replies: 4
    Last Post: 11-04-2011, 10:19 AM
  4. adding record by using separate form
    By jacek.w.bak in forum Forms
    Replies: 1
    Last Post: 09-11-2011, 06:15 PM
  5. Adding totals to a form from a subform
    By Niki in forum Access
    Replies: 13
    Last Post: 05-13-2011, 12:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums