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?
Waldis_1
0
Newbie Poster
Recommended Answers
Jump to PostYou 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.
For example:
'In DestinationForm Protected Friend Sub FillListView(ByVal sSQL As String) Dim da As New OleDbDataAdapter(sSQL, New OleDbConnection("YourStringHere")) Dim …
All 4 Replies
Begginnerdev
256
Junior Poster
Santanu.Das
125
Santanu Das
Begginnerdev
256
Junior Poster
Santanu.Das
125
Santanu Das
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.