Hi
I want to connect a Oracle Database thru VB
by ADODB connection.
I've used
Dim Conn As ADODB.Connection
Dim ObjRec As ADODB.Recordset
Private Sub Form_Load()
Set Conn = New ADODB.Connection
Set ObjRec = New ADODB.Recordset
Conn.open "DSN=misuat;UID=misuat;PWD=misuat007;"
ObjRec.ActiceConnection = Conn
ObjRec.open "select lkm_id from lookup_master"
While Not ObjRec.EOF
Debug.Print ObjRec("lkm_id" & " "
Debug.Print "<br>"
ObjRec.MoveNext
Wend
ObjRec.Close
Conn.Close
End Sub
I'm getting error Undefined Data Type.
can anyone help me.
Thanx.
I want to connect a Oracle Database thru VB
by ADODB connection.
I've used
Dim Conn As ADODB.Connection
Dim ObjRec As ADODB.Recordset
Private Sub Form_Load()
Set Conn = New ADODB.Connection
Set ObjRec = New ADODB.Recordset
Conn.open "DSN=misuat;UID=misuat;PWD=misuat007;"
ObjRec.ActiceConnection = Conn
ObjRec.open "select lkm_id from lookup_master"
While Not ObjRec.EOF
Debug.Print ObjRec("lkm_id" & " "
Debug.Print "<br>"
ObjRec.MoveNext
Wend
ObjRec.Close
Conn.Close
End Sub
I'm getting error Undefined Data Type.
can anyone help me.
Thanx.