I have a form linked to a table (Table1) with a Listbox control linked to a query (Query1). The query (Query1) extracts data from another table (Table2). Table1 and Table2 have a one-to-many relationship. When opening the form, the Listbox loads correctly the output of the query (Query1). No problem here.
I also have a refresh button linked to the refresh form action in the main form.
If I keep the form open and update the contents of Table2, the Listbox is not updated to reflect the new information. Not even if I click the refresh button. The contents of the Listbox are only updated if I close and reopen the form. Question is how do I make changes in Table2 reflect in the Listbox control without having to reopen the form and preferably without macros?
To illustrate what I mean do the following:
1. Open the attached database
2. Open the Form1 form
3. Check the contents of the listbox (click the arrow on the right)
4. Change field1 or field2 in the table subform (or change field1 or field2 directly in Table2) keeping Form1 open
5. Save changes
6. Click the Refresh button in Form1
7. Check the contents of the listbox again (click the arrow on the right)
Even though the table fields were updated (you can see this in the table subform) the Listbox contents is not updated.
Any help is appreciated.