I am trying to move items from a listbox called lstavapps to a listbox called lstinapps. I am populating the lstavapps by a query from a table. My code is below. The problem I am having is when it adds them to the lstinapps it just adds the row #'s, i.e: 0,1,2,3, etc.. I want to add the actual string.
Private Sub cmdAdd_Click()
Dim ctlList As Control, varItem As Variant
Set ctlList = Forms!frmServers!lstavapps
For Each varItem In ctlList.ItemsSelected
Dim additem As String
lstinapps.additem (varItem)
Next varItem
End Sub
Private Sub cmdAdd_Click()
Dim ctlList As Control, varItem As Variant
Set ctlList = Forms!frmServers!lstavapps
For Each varItem In ctlList.ItemsSelected
Dim additem As String
lstinapps.additem (varItem)
Next varItem
End Sub