Hello,
I am trying to fetch an oracle table using vb app.
here is my current code.
can someone tell me what i am doing wrong.
Private Sub Command1_Click()
Dim Rs1 As New ADODB.Recordset
Dim buffer As String
Dim dbConn As New ADODB.Connection
Dim strSql As String
buffer = "DSN=yamato;UID=myasin;PWD=mypasswd"
dbConn.Open buffer
strSql = "SELECT * FROM tableName"
Rs1.open strSql
With Rs1
.MoveFirst
txtoutput.Text = Rs1.Fields(1)
End With
Rs1.Close
thanks,
I am trying to fetch an oracle table using vb app.
here is my current code.
can someone tell me what i am doing wrong.
Private Sub Command1_Click()
Dim Rs1 As New ADODB.Recordset
Dim buffer As String
Dim dbConn As New ADODB.Connection
Dim strSql As String
buffer = "DSN=yamato;UID=myasin;PWD=mypasswd"
dbConn.Open buffer
strSql = "SELECT * FROM tableName"
Rs1.open strSql
With Rs1
.MoveFirst
txtoutput.Text = Rs1.Fields(1)
End With
Rs1.Close
thanks,