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

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 21982

Trending Articles