One step at a time please hankshlump!
Here's how to use a listview
Listview is in Microsoft Windows Common Controls
add it into your project
incase you aren't familiar...
Project->Components select it from the list
Drop a Listview onto your form
right click and select Properties
set View to lvwReport
click the "Column Headers" tag
click "Insert Column"
enter Cash in the text field
click "Insert Column"
enter Users in the text field
to add an item:
to update a user who is already on the listCode:Dim itmx As ListItem Set itmx = ListView1.ListItems.Add(, , "20") itmx.SubItems(1) = "Mark"
Code:Sub updateScore(strCash As String, strUser As String) Dim itmx As ListItem Set itmx = ListView1.FindItem(strUser, lvwSubItem) itmx.Text = strCash ListView1.Sorted = True End Sub





Reply With Quote