Results 1 to 2 of 2
  1. #1
    bid19123 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2016
    Location
    Cayman Islands
    Posts
    15

    Updating sum calculated field


    I have a form containing a subform. The subform sums the individual counts which are then shown in a textbox on the main part of the form. The problem is that to get the sum value to update I have to move to the next record in the main form and then return to the original record. The mainform is based on a query and I suspect I have to write some code to rerun the query. Could someone please give me an example of the code needed and also tell me where the code should be placed (on dirty, afterupdate etc).

    Thanks

    Alan

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    in the subform footer, but a text box that sums the sums: =sum([sumFld])
    this box should always be live and not need updating.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2017, 05:59 AM
  2. Calculated field in Combobox Not Updating
    By LemonRawr in forum Access
    Replies: 1
    Last Post: 02-10-2017, 02:17 PM
  3. Replies: 2
    Last Post: 12-30-2014, 01:32 PM
  4. Replies: 7
    Last Post: 03-02-2014, 08:47 PM
  5. Replies: 4
    Last Post: 03-05-2010, 09:56 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