The calculated fields are unbound fields on your form as in they are not bound to the table or query which is the record source of the form. As such when you update the records the unbound fields are not automatically updated.
However, assuming the field are calculated based on values in the form update, simply requery each calculation. That is:
For each calculated field in the form footer:
Me. FieldName. Requery
If this does not solve your problem please let me know.
Quote:
Originally Posted by terrybens
Thank you comteck for your reply.
I cannot use "sum" in the source of my form because the form displays a list of results while a "sum" function in a query will return an aggregated line.
I can however calculate the sub-total in another query using VBA code, which is your solution I guess. On the event "apply filter" of the form I can run a piece of code to calculate the sub-total.
I have tried this but the sub-totals fields in my footer are in "read only" because I have not specified a unique table in my form. However I cannot choose one (nothing in the listbox) because my record source is proc stock.
I have no idea how to solve this problem.
Thank you guys for your help.
Terry