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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting listbox values into another listbox

Status
Not open for further replies.

DoDo1975

Technical User
Jun 4, 2002
18
CA
Hello,

I have created to list boxes. The first listbox lists the values of a certain group in a table. I would like to be able to select one or more of these values in the first listbox, and then press a button to "send" these values into the 2nd listbox. I would also like to be able to delete values out of the second listbox when needed.

This is very similar to many access wizards, just like the create form wizard, so I suspect there might be something built in.

I had thought of creating a temporary table, and displaying the values from this table in the second listbox, appending and deleting records from it as I went along.

Does anyone know the best way to do this, and am I on the right track??

Help appreciated.

Joel Lindsay
 
if you have access 2000 or above this might do the trick

private sub button1_click()
If Not IsNull(List1) Then
List2.AddItem List1.Column(0), 0
End If
end sub Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top