add items from one combobox to another


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
 
Ad

Advertisements

P

Piet Linden

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top