If .SubItems(19) = "Y" Then


                chkTax.Value = 1


            txtTaxRate.Text = .SubItems(16)
        Else
            chkTax.Value = 0
            txtTaxRate.Text = ""
        End If

having problem Compilation error : method or data member not found with this code
chktax is a check box.

Youir error is here -

If .SubItems(19) = "Y" Then

Your listview does not have a coloumn number 19 (20 - starts from 0), hence the error. Make sure you have the correct amount of coloumns...

Thanks AndreRet...

Only a pleasure. Please mark as solved, thanx.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.