Hi,
I'm trying to build a simple search in Access. I'll just give a simplified example, as I think I can solve the problem, if you can help me with this subproblem..
I have 2 listboxes - "Region" and "Country". "Region" supports extended multiple select.
I want the Country listbox to populate with all countries in all of the selected regions.
So far, I can do it without multiple select, using requery.
I've created a subroutine that extracts each selected value from the "Region" listbox and creates a new query.
The "Country" listbox is based on this query. But when I do requery, "Country" doesn't seem to load the altered query - it just refreshes the already selected query. This means that the box isn't updated with the new selection, but it is when I go to design view and back again.
How do I get the listbox to populate from the new version of the stored query?
--- Or is there a simpler way to do it?
I'm trying to build a simple search in Access. I'll just give a simplified example, as I think I can solve the problem, if you can help me with this subproblem..
I have 2 listboxes - "Region" and "Country". "Region" supports extended multiple select.
I want the Country listbox to populate with all countries in all of the selected regions.
So far, I can do it without multiple select, using requery.
I've created a subroutine that extracts each selected value from the "Region" listbox and creates a new query.
The "Country" listbox is based on this query. But when I do requery, "Country" doesn't seem to load the altered query - it just refreshes the already selected query. This means that the box isn't updated with the new selection, but it is when I go to design view and back again.
How do I get the listbox to populate from the new version of the stored query?
--- Or is there a simpler way to do it?
Comment