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 …
All 4 RepliesReply to this topic
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.