I need help about copying the record from listview 1 to listview 2 without duplicating of records.
This is my basic codes : It allows to create duplicate
any help?
This is my basic codes : It allows to create duplicate
Code:
Dim x As Integer
Dim lvwItem As MSComctlLib.ListItem
For x = lv1.ListItems.Count To 1 Step -1
If lv1.ListItems(x).Selected = True Then
Set lvwItem = lv2.ListItems.Add(, , lv1.ListItems(x).Text)
lvwItem.SubItems(1) = lv1.ListItems(x).SubItems(1)
End If