- I have a query which joins two tables and includes various calculated values.
- Form1a shows the results of this query in continuous view.
- Form1b shows records from Table1 in single-view with a sub-form 2, based on Table2 in continuous view.
- Each detail line on form 1a has a button which opens form 1b filtered to the appropriate
record (button created via the command button wizard).
So far so good, everything works OK.
If I select a record and and then make some changes to sub-records, that should change some of the results back on form 1a, but when I close form 1b, no changes have been made.
I assume I need to requery the controls on the form 1a e.g. Me.ControlName.Requery and I have tried this in both On Activate() and On GotFocus() but neither of these worked.
If I manually close form 1a and re-open it then it DOES show the correct changes. So basically, I think I want to simulate that behaviour without actually closing the form.
I suppose the close button on form 1b could *also* close form 1a and then re-open it, but that seems inefficent.
Do I need to requery on a different event or do I need to do something else?
Thanks,
Pat.