Results 1 to 4 of 4
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    Add Subtotals from subform to main form

    hi



    i have attached a image of a form which is not working out the totals for me. the way id like it to work is the sub totals are totaled (from sub form 13.20 + 13.20) is done using a hidden text field in the same sub form. the hidden text that be should displayed in the main form (i.e text 22)

    the problem is it works when you set it to workout the quantity but not the sub totals. i have formmated it to number and removed the £ sign too, that didnt work. the one thing i noted is the sub total is just a text box and not a field in table.

    is that the problem? thanks in advance
    Click image for larger version. 

Name:	Untitled.png 
Views:	19 
Size:	148.0 KB 
ID:	10414

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    This is a form/subform/subsubform arrangement? Looks like the total is on the subform. What is the expression used in the textbox?

    An alternative is to show the totals at the bottom of the continuous/datasheet subsubform. With the forms open normally, click into the subsubform and click the Totals button on ribbon. This will open a row at bottom of the records where you can select aggregate function for each column. Then save the form. Cannot reference these totals because they are not in textboxes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    hi thanks for getting back, yes the form is a form/subform/subsubform arrangement

    iv copied the setup from http://www.databasedev.co.uk/subform-total.html

    so i have the totals buying price in a hidden text box in the subform footer and then text 22 just displays that value.

    i cant get the quantity and buying price to read but not the sub totals? is it because its not stored it a table?

    i cant seem to find the tools? which one is it under?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Ribbon > Home > Records > Totals

    Think should be able to reference that textbox even though the sum is based on calculated subtotals. I just don't have any db with this structure but seems I have helped other posters with this and it worked.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 6
    Last Post: 08-22-2012, 03:24 AM
  2. Replies: 3
    Last Post: 06-15-2012, 11:14 AM
  3. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  4. Totals from subform to main form
    By kathi2005 in forum Forms
    Replies: 4
    Last Post: 11-04-2011, 10:19 AM
  5. Subform in a Tab Control on a Main form
    By jpkeller55 in forum Access
    Replies: 4
    Last Post: 01-08-2011, 12:31 PM

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