Results 1 to 3 of 3
  1. #1
    CyberRaptor is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    2

    Total from subform column?


    I need to sum the records of a field on a subform, and display it in the main form. I read that you have to place a text box in the subform footer using =Sum to do this first, since it wouldn't work at all if when I just tried it in the main form. It still produces erroneous numbers though, and I'm not sure how to provide the main form with a reference to the control there. Would someone please tell me how to do this?

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Open subform in design view place a text box named "Total" in the subform footer and set its control source to =Sum(YourField)
    On the main form, place a text box and set its control source to =[YourSubformControlName].[Form]![Total]
    YourSubformControlName is the subform control name on the main form.
    If you do not want show the text box "Total" on your sub form set its height and form footer's height to zero and Visible property to "No"

  3. #3
    CyberRaptor is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    2
    Thanks! That appears to have done the trick.

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

Similar Threads

  1. How to total a column of numbers in a subform?
    By snowboarder234 in forum Forms
    Replies: 3
    Last Post: 04-24-2012, 09:39 AM
  2. Total Column Calculating Error
    By joannakf in forum Queries
    Replies: 3
    Last Post: 02-10-2012, 11:17 AM
  3. Replies: 2
    Last Post: 06-09-2011, 12:11 PM
  4. Replies: 5
    Last Post: 09-10-2010, 10:07 AM
  5. Total of column with check boxes
    By turbosdad in forum Queries
    Replies: 4
    Last Post: 08-07-2010, 07:03 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