Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

How to put result of SQL in textbox - VB

$
0
0
How can i put the result of an SQL query in to a text box. So far i have

Code:

Dim SetTextBox as Recordset
Dim sSQL as String

sSQL= "Select animal_no from animal where owner= ' "

Set prsSetTextBox = dbconn.OpenRecordeSet(psSQL, dbOpenSnapShot) ' I have a;ready set my dbconnection

frmShowDetails.Text10.Text=prsSetTextBox ' the text box i want to populate is on a different form


Viewing all articles
Browse latest Browse all 42215

Trending Articles



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