How can I populate a listview from another form passing the SQL statement from this form to the other form with the listview showing the result of the query?
Jump to Post
You can create a sub procedure in the destination form that will take the SQL statment as a string. Then fill the ListView from that sub procedure.
'In DestinationForm Protected Friend Sub FillListView(ByVal sSQL As String) Dim da As New OleDbDataAdapter(sSQL, New OleDbConnection("YourStringHere")) Dim ds As …
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.