Hi Osemollie,
Once that new actor is added to the database, refresh the total data in the listview and use the following code.
Here T is the Actor Name you want to find. LVDetails is the ListView. (My assumption is actor names are available in the list view first column not in list sub items. if you are using other columns then use this S = L.ListSubItems(I).Text where "I" is the index of the list sub item.
Dim L As ListItem, T As String, S as String
For Each L In LVDetails.ListItems
S = L.Text
If S = T Then
L.Selected = True
L.EnsureVisible
Exit For
End If
Next L
I think this will help.
Ch. V. Sudhakar
Enter your message below
Sign in or Join us (it's free).