Arguments are of the wrong type or out of acceptable range or are in conflict with one another

5 pts.
Tags:
VB.NET
This is my code to display the database "supplier":
Sub displaylist()
Dim lst ListView1.Items.Clear()

rs = New ADODB.Recordset 

With rs

.Open("select * from tblsupplier order by suppID asc", cn, 2, 3)

Do While Not .EOF

lst = New ListViewItem
lst = ListView1.Items.Add(.Fields(0).Value)
lst.SubItems.Add(.Fields(1).Value)
lst.SubItems.Add(.Fields(2).Value)
lst.SubItems.Add(.Fields(3).Value)

MoveNext()
Loop
End With
End Sub


Software/Hardware used:
management information system
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    What are you trying to do with this line?

    Dim lst ListView1.Items.Clear()

    85,430 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: