Listview Question - What is the key parameter? Error not unique key given
I have a listbox and allow certain files to be dropped on and addedd with other info in columns. When I add two of the same files, I get an error saying the key is not unique in the collection. What is the key exactly? So I decided to change the key from the first example to the second below making the time the key if that would work and it does not. It says invalid key. I need to be able to add duplicate info to the listview control.
Can someone help? I appreciate it!!!!
Get error of not a unique key when duplicate data is added.
Set lstItem = listview1.ListItems.Add(, text1.text, text1.text)
This example errors as invalid key.
Set lstItem = listview1.ListItems.Add(, Format(Time, "hhmmss"), text1.text)