this is the error i get when i want to search for info in my system:
run-time error '-2147217904 (80040e10)':
no value given for one or more required parameters.
this is the code..... please help.....
[rs.Open sql, conn 'this is where the error is!!!!
lstBooks.ListIt ems.Clear
Do While Not rs.EOF
a = a + 1
Set lstItem = lstBooks.ListIt ems.Add(, , a, 1, 1)
lstItem.SubItem s(1) = rs(0).Value
lstItem.SubItem s(2) = rs(1).Value
lstItem.SubItem s(3) = rs(2).Value
lstItem.SubItem s(4) = rs(3).Value
lstItem.SubItem s(5) = rs(4).Value
lstItem.SubItem s(6) = rs(5).Value
lstItem.SubItem s(7) = rs(6).Value
If IsNull(rs(7).Va lue) Then
lstItem.SubItem s(8) = 0
Else
lstItem.SubItem s(8) = Val(rs(7).Value ) - Val(BooksTotalO ut(rs(0).Value) )
End If
If lstItem.SubItem s(8) = 0 Then
lstItem.SubItem s(9) = "Not Available "
Else
lstItem.SubItem s(9) = "Available"
End If
lstItem.SubItem s(10) = Val(BooksTotalO ut(rs(0).Value) )
lstItem.SubItem s(11) = Val(lstItem.Sub Items(8)) + Val(lstItem.Sub Items(10))
lstItem.SubItem s(12) = rs(8).Value
lstItem.SubItem s(13) = rs(9).Value
lstItem.SubItem s(14) = rs(10).Value
lstItem.SubItem s(15) = rs(11).Value
lstItem.SubItem s(16) = rs(12).Value
rs.MoveNext
Loop
If lstBooks.ListIt ems.Count = 0 Then MsgBox "No data found", vbInformation, ""
' Set rs = Nothing
'Set rs = Nothing
End Sub]
run-time error '-2147217904 (80040e10)':
no value given for one or more required parameters.
this is the code..... please help.....
[rs.Open sql, conn 'this is where the error is!!!!
lstBooks.ListIt ems.Clear
Do While Not rs.EOF
a = a + 1
Set lstItem = lstBooks.ListIt ems.Add(, , a, 1, 1)
lstItem.SubItem s(1) = rs(0).Value
lstItem.SubItem s(2) = rs(1).Value
lstItem.SubItem s(3) = rs(2).Value
lstItem.SubItem s(4) = rs(3).Value
lstItem.SubItem s(5) = rs(4).Value
lstItem.SubItem s(6) = rs(5).Value
lstItem.SubItem s(7) = rs(6).Value
If IsNull(rs(7).Va lue) Then
lstItem.SubItem s(8) = 0
Else
lstItem.SubItem s(8) = Val(rs(7).Value ) - Val(BooksTotalO ut(rs(0).Value) )
End If
If lstItem.SubItem s(8) = 0 Then
lstItem.SubItem s(9) = "Not Available "
Else
lstItem.SubItem s(9) = "Available"
End If
lstItem.SubItem s(10) = Val(BooksTotalO ut(rs(0).Value) )
lstItem.SubItem s(11) = Val(lstItem.Sub Items(8)) + Val(lstItem.Sub Items(10))
lstItem.SubItem s(12) = rs(8).Value
lstItem.SubItem s(13) = rs(9).Value
lstItem.SubItem s(14) = rs(10).Value
lstItem.SubItem s(15) = rs(11).Value
lstItem.SubItem s(16) = rs(12).Value
rs.MoveNext
Loop
If lstBooks.ListIt ems.Count = 0 Then MsgBox "No data found", vbInformation, ""
' Set rs = Nothing
'Set rs = Nothing
End Sub]
Comment