Hi
I have a query that takes the value in a form control as its criteria...
[Forms]![frm_Work_Request]![txt_WR_ID]
A control on the main form (a list box) is populated by the query. This works fine.
When I go to the next record on the main form, I want the query to run again (I dont need to open it/see it) - I just want the list box to be refreshed.
I added a docmd.openquery command but this obviously opens the query (which I dont want) and the main form isnt being refreshed with the new query results.
Can anyone help ?
I have a query that takes the value in a form control as its criteria...
[Forms]![frm_Work_Request]![txt_WR_ID]
A control on the main form (a list box) is populated by the query. This works fine.
When I go to the next record on the main form, I want the query to run again (I dont need to open it/see it) - I just want the list box to be refreshed.
I added a docmd.openquery command but this obviously opens the query (which I dont want) and the main form isnt being refreshed with the new query results.
Can anyone help ?