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