Changes

ListView Control VB6

259 bytes added, 13:00, 2 February 2008
[[ListView Control]] moved to [[ListView Control VB6]]
The following lines were added (+) and removed (-):
   <nowiki>  conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\My Documents\Test_1.mdb;Persist Security Info=False")</nowik   <nowiki>  conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\My Documents\Test_1.mdb;Persist Security Info=False")</nowiki>i>=== Object variable or With variable not set ===Consider the line of code: intID = frmStaffList.lv.SelectedItemIf the list contains no items, an error is returned.Recommended fix:  If lv.ListItems.Count > 0 Then  intID = frmStaffList.lv.SelectedItem
Bureaucrat, administrator
16,192
edits