Results 1 to 6 of 6
  1. #1
    cwh13 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11

    Sum a column

    is there any way to sum a column or field that has a calculation in them?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Where?
    On a Report, Form, or Query?

  3. #3
    cwh13 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11
    A subform,on the footer of a subform i do not need to see it just use it.

  4. #4
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    one thing you can do is create a field on the main form with this as the control source =dbsum("calculation like in calculated field","table or query")
    after update of the subform
    point back to the text box and requery it.

    if the field name was txtCalc in main form..

    txtCalc.controlsource = above ..

    so in after update of subform
    me.parent.txtCalc.requery

    one way to approach it.


    I would make a function and then call the function after the update but both will work.

    hope this helps..

  5. #5
    cwh13 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11

    Function

    hello folks let me ask this question in a differant way than i did yeserday.i need to sum a group of calculated records in a field on a subform.i can sum the records in the fields that do not have expression in them but not the fields that do.is there a function that needs to be used in the sum expression?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 01-13-2012, 09:17 AM
  2. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  3. Replies: 3
    Last Post: 09-28-2011, 04:29 PM
  4. Replies: 1
    Last Post: 08-18-2011, 08:35 AM
  5. Replies: 1
    Last Post: 04-15-2010, 02:07 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