Hello,

I have a listview where i have shown records directly from mysql database....
Now i have a problem that i can't delete multiple records but one record from the listview with checkboxes...

My Code:
Code:
                    'Dim i As Long
                    'For i = lvDisplayIn.Items.Count To 1 Step -1
                    For i = lvDisplayIn.Items.Count - 1 To 0 Step -1
                        If lvDisplayIn.Items(i).Checked = True Then
                            'Database query to delete records
                        End If
                        If lvDisplayIn.Items.Count = 0 Then Exit For
                    Next i
You can see i have comment out some codes in my code... these codes are from my searching about how to delete
multiple records....but it didn't work....

So when i check multiple checkboxes it only deletes one record from the last///..... why?


Please help me with the circumstances.....
Thanks In Advance !!!