0
        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.

Edited by pritaeas: Fixed code tag

2
Contributors
3
Replies
10
Views
3 Years
Discussion Span
Last Post by AndreRet
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.