Are you having a problem with the SQL part, the ListView part, or both? My SQL is rusty so I'll leave that to the experts as I have no SQL implementation to play with, however, the ListView part is something I can help you with. What specifically are you having a problem with? Is it configuring the listview columns, adding the listview items, etc?
Reverend Jim
Posting Shark
1,169 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159
Then if your recordset is returned in the variable "rec" you can do
do until rec.EOF
dim item as new ListViewItem(rec(0).Value)
item.SubItems.Add(rec(1).Value)
item.SubItems.Add(rec(2).Value)
.
.
.
lvwListView.Items.Add(item)
rec.MoveNext()
loop
rec.Close()
Or you can use the field names instead if a field index, that is, rec("FIRST_NAME").Value. And forgive me if my SQL syntax is a little rusty.
Reverend Jim
Posting Shark
1,169 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159