Why "Method or Data Member not found" message is showing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Khalil ur Rehma
    New Member
    • Jan 2011
    • 1

    Why "Method or Data Member not found" message is showing

    Error "Method or Data Member not found" here is my code if any one may solve my problem.

    Code:
    Dim conDataConnection As Connection
    Dim strSQL As String
    Dim lstSel As ListItem
    
      Set conDataConnection = New Connection
      conDataConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & App.Path & _
                             "\data.mdb;Persist Security Info=False"
    
    For Each lstSel In ListView1.LisItems
    
      strSQL = "Insert Into sale (date, billno, partycode) Values (" & _
               "'" & lstSel.Text & "', " & _
               "'" & lstSel.SubItems(1) & "', " & _
               lstSel.SubItems(2) & ")"
      conDataConnection.Execute strSQL
    Next
      conDataConnection.Close
      Set conDataConnection = Nothing
    Last edited by debasisdas; Jan 5 '11, 10:45 AM. Reason: Formatted using code tags.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you need to check for the following
    ListView1.LisIt ems

    Is that a property / method / event of the control ?

    Comment

    Working...