add items from one combobox to another

  • Thread starter Thread starter Associates
  • Start date Start date
A

Associates

Hi,

I was wondering if anyone might be able to help me here. What i was trying
to do here is to move items across from one combobox to another combobox.

For example.

Combobox 1 has a list of items from Table called students

John
Behard
Michess
....

Combobox 2 will be empty at the start.

The following is a brief description of how i wanted it to work.
In the form, user can select item he/she wants and the selected item will be
added to the second combo-box when user press the button "add".

What i have tried so far but to no avail is to set the rowsource of the
second combobox to be the same as the first combobox. In doing this, i got an
exact full list of items in combobox 2 as in combobox 1.

Any helps would be appreciated.

Thank you in advance
 
Hi,

I was wondering if anyone might be able to help me here. What i was trying
to do here is to move items across from one combobox to another combobox.

For example.

Combobox 1 has a list of items from Table called students

John
Behard
Michess
...

Combobox 2 will be empty at the start.

The following is a brief description of how i wanted it to work.
In the form, user can select item he/she wants and the selected item willbe
added to the second combo-box when user press the button "add".

What i have tried so far but to no avail is to set the rowsource of the
second combobox to be the same as the first combobox. In doing this, i got an
exact full list of items in combobox 2 as in combobox 1.

Any helps would be appreciated.

Thank you in advance

Don't you mean a LISTBOX?
Check out the AddItem method.
 
Back
Top