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