Start New Discussion within our Software Development Community
        If .SubItems(19) = "Y" Then

                chkTax.Value = 1

            txtTaxRate.Text = .SubItems(16)
            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...

This article has been dead for over six months. Start a new discussion instead.