I must be going nuts because the help I've got refers to 'Adds a list item to the specified command bar combo box control'. I have a normal list box and when I click on a button, I want the selected item to move into another list box. When I use the AddItem method, I get an error saying that the method is not supported.
I can only think that I need to use a different type of listbox other than what comes standard with Access???
That's really odd. I created 2 list boxes and added the following code to the AfterUpdate event in the first one. Selecting an item put it in the second list box:
Code:
List51.AddItem (List49.Value)
The 2 list boxes are standard, unbound boxes.
You're putting the AddItem in the VBA module right, not in the Control Source or something? If you're using a button, you'd obviously put the code in the OnClick event of the button.
I can't think of anything else that might be wrong, but it's not the type of list boxes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.