Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21278

Populating listbox with results from SQL query

$
0
0
HI All,

The code below, populates a listbox with data from the field "calibrator".
Code:

Data1.Refresh
While Not Data1.Recordset.EOF
list1.AddItem Data1.Recordset("calibrator").value
Data1.Recordset.MoveNext

However, i can filter a lot of the output out by means of a query. If the query was say "select calibrator from gauges where type2 = true" then how can i incorporate that in to the above code?

Any advise would be appreciated:)

Viewing all articles
Browse latest Browse all 21278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>