From Listbox1 to listbox2

F

Floyd Forbes

I have two listboxes on Form1. Listbox1 and Listbox2. Listbox1 is
base on a table on names. Listbox2 is base on a blank table. How
can I use a command button to copy names from list1 to list2.

Floyd
 
P

pietlinden

Floyd said:
I have two listboxes on Form1. Listbox1 and Listbox2. Listbox1 is
base on a table on names. Listbox2 is base on a blank table. How
can I use a command button to copy names from list1 to list2.

Floyd

use the selected items collection of the From Listbox and then use
..AddItem to the To Listbox. (assuming you're using some version of
Access after 2000).
 

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