I have a form with a ListView control on it. Whenever I run the code to load the listview, I get the error 380 "Invalid Property value". The code is listed below.
Dim rs As New ADODB.Recordset
Dim lstItem As ListItem
Do While Not rs.EOF
Set lstItem = MyListView.ListItems.Add()
lstItem.Text = rs.Fields("StudyID")
lstItem.SubItems(1) = rs.Fields("StudyName")
lstItem.SubItems(2) = Nz(rs.Fields("StudyMonth"), "")
lstItem.SubItems(3) = Nz(rs.Fields("StudyYear"), "")
I've tried both re-register mscomctl.ocx and reinstall mscomctl.ocx but nothing worked.
Can anyone shed some light on this?