I have a query which joins three forms, a main form called AppointmentsF, and two pop up small forms one called ExtrasF and the other DepositsF. The AppointmentsF form has an autonumbered ID field which is linked on a one to one basis to numbered IDs on both of the two pop up small forms. I only occasionally need to use the pop up forms, on about 5% of occasions, which is why they are pop up forms linked to the main form rather than embedded in the main form - size considerations!
The pop up forms contain fields which need to be reflected in calculated fields of the main form, a field that calculates the total value taken from the main and pop up forms (where they exist) and concatenates strings taken from one of the pop up forms where those strings exist.
I can only access the pop up forms from buttons on the main form which take me to the related pop up form.
When I close the pop up forms, which have to be closed by using a small button before the Main Form can be closed, and despite having a procedure in the on click event of the button used to close the pop up form (namely:
Me.Refresh
Forms!AppointmentsF.Recalc
)
and with similar code, (namely
Me.Refresh
Forms!AppointmentsF.Refresh
)
on each field that is used to calculate the total value or concatenate a string, I cannot get the AppointmentsF form to show the recalculated values.
If I close the AppointmentsF form, having first closed either or both of the pop up Forms, and then reopen the AppointmentsF form everything is correct. The Totals are correct and the Concatenated String is showing correctly.
How do I force the AppointmentsF form to show the updated total value and the concatenated string (where it arises) without having to close and reopen it? What am I doing wrong?
Many thanks
David