Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Using Visual Basic and Connecting to Oracle
Glenn,
I'd recommend using MS ADO (Project->References->Microsoft ActiveX Data
Objects 2.0 Library).
To connect to your database include a connection object (add this to your
main form)...
Global gadoCo As New ADODB.Connection Then create a recordset (in your class or basic modules):
Private adoRs As New ADODB.Recordset Then use it:
adoRs.Open "SELECT * FROM tab"
adoRs.MoveNext
txtTextBox.Text = adoRs.Fields!<FieldName>
Have fun!
-- Jim Harrison Colway Software and Design www.colway.freeserve.co.ukReceived on Mon Apr 24 2000 - 00:00:00 CDT
![]() |
![]() |