Hi SairamP,
Try to read something about ADO, and Recordset and Connection, this information can be found in the URL
www.msdn.com
In following a sample in
vb of a query which return a single value, i hope this can help you.
Dim RS as ADODB.RECORDSET
Dim db As ADODB.Connection
Connect = "Provider=XXX;Password=XXX;User ID=XXX;Data Source=XXX;Persist Security Info=True"
DB.ConnectionString = Connect
DB.Open
Rs.ActiveConnection = DB.connect
rs.Open "select ..."
do until rs.EOF
TEXT1.TEXT = RS.Fields(0)
rs.MOVENEXT
loop
Regards Rafael,
Quote:
Originally posted by SairamP
hey everybody
i am working on project in which i am using vb and oracle 8i.....
i have a text-box in vb in which if the user types in a name i want the other text box to get the corresponding name from oracle table....
i know how to connect oracle and vb...but the quyery execution for a text-box i am finding it difficut...plz tell me abt this and also how to execute queries which retuen a single value that i can place in text-box.
plzz help me real soon..
sairam
|