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

Using two list boxes, move items between them

Status
Not open for further replies.

jahlmer

Technical User
Aug 23, 2000
143
US
Here's my back-end:

tblAuthors
AuthorID Autonumber
AuthorName Text

tblDocs
DocID
AuthorID1
AuthorID2
AuthorID3
AuthorID4


I have two list boxes, with two buttons between them (> and <).

I want to be able to see a list of all the authors, and author ID's on list1, and be able to click the > to move them into list2. A max of 4 would be allowed in that list, and would populate the AuthorID1, 2, 3, 4 in the tblDocs table.

Any help is appreciated
 
set list box 2 row source type to value list then in the on double click event of listbox1 one place this code

Me.List2.RowSource = Me.List2.RowSource & Me.List1.Value & &quot;;&quot;
 
sorry did not read close enough code posted will move it as they click on selection. will post for multiselect in a few minutes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top