I have created a database to develop meal plans and apply them to different days.
I have a form called 'frmMainDay' which allows me to apply different meals to specific days, along with 4 total fields for each meal (this is done by navigating the subform 'frmSubDay') (there are 4 totals because I am going to use this as a template for various databases). Note that the 4th total simply sums the other 3 totals together.
My main form contains fields that sum the total fields in the subform. This may sound confusing so I will provide an example (assuming that you have my db. file open).
For example, the 'DayTotal' field on the main form sums the 'Totaltest' field on the subform. So, for example, on Day 1 the 'DayTotal' field would equal 102+550 because there are 2 meals on this day.
The total fields on the main form (DayTotal, etc) are generated through the query 'qryDayTotal'.
Here is my issue:
When I enter a new meal into my form (i.e. a new row in the subform) the fields 'DayTotal', 'DayTotal2', etc on the main form do not update with the new totals. They only update if I close the form and then re-open it.
Please help me to figure out a way to make the fields on the main form update in real time without having to close the form or go to the next record.
Also please note that I am very new to Access and have basically no knowedge of Visual Basic or writing code.
All help is appreciated.
the db. file is attached