Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving Data Between Two Combo Boxes

Status
Not open for further replies.

HardingR2000

Programmer
Joined
Oct 6, 2008
Messages
40
Location
US
I want to create a form with two combo boxes. cmboA contains all products. cmboB contains only those products that have been selected from cmboA. Once it has been selected from cmboA and moved to cmboB it needs to be "removed" from cmboA via a change in the WHERE logic which defines the record source for cmboA. I think I know how to implement this. What I don't know is the following.

I have seen other language applications that move data between two combo boxes using a left arrow (<) button and right arrow (>) button which moves the selected value from the left combo box to the right combo box and vis-a-versa.

Does Access have similar functionality and if so what is it called and how do I implement it? Or is there a better way?

Thanks
 
How are ya HardingR2000 . . .

Have a look below ... same should work for comboboxes only no double-click.

Adding and Removing Items Between Two Listboxes

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Faq702-6326
Gives two examples for listboxes. The first example requires the user only to write six lines of code to make it all work because the functionality is incorporated in a class module.

I assume you mean list boxes. Combos does not seem like a logical choice.
 
Thank you for your help. It is working wonderfully.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top