Hi,
I have a form with a sub-form. The form displays some items, each items have a "category" attribute. One Item can be in more than one category, and I set this up using a many to many relationship. Now, on the sub-form, I have a list box which displays all the categories to choose from, and a button to add a category to an item. Besides is another list box which displays the categories the item is actually in. When the user choose and click the button, I want Access to add the category to the list of categories the item has in the second list box.
So far I have a query based on the "linking table" that updates itself whenever a new item is selected and displays only the categories the item selected is in, which is working great. The second list box has this query as row source, but the list does not change if I change item. I tried many things, including Requery function on the list box row source, as well as a macro with the Refresh function. I couldn't have the list updated.
I'm out of ideas for tonight?
If anyone could point me a direction on this, I would appreciate a lot?
KingBroil
I have a form with a sub-form. The form displays some items, each items have a "category" attribute. One Item can be in more than one category, and I set this up using a many to many relationship. Now, on the sub-form, I have a list box which displays all the categories to choose from, and a button to add a category to an item. Besides is another list box which displays the categories the item is actually in. When the user choose and click the button, I want Access to add the category to the list of categories the item has in the second list box.
So far I have a query based on the "linking table" that updates itself whenever a new item is selected and displays only the categories the item selected is in, which is working great. The second list box has this query as row source, but the list does not change if I change item. I tried many things, including Requery function on the list box row source, as well as a macro with the Refresh function. I couldn't have the list updated.
I'm out of ideas for tonight?
If anyone could point me a direction on this, I would appreciate a lot?
KingBroil