Hi Raghu,
Add References
Microsoft ActiveX Data Object Library 2.0 to ur project
Connection To Oracle is :
Dim adoCn As New ADODB.Connection
Dim sSQL as String
Dim RST As New AdoDb.RecordSet
sSQL= "Provider=MSDAORA.1;Password=MyPwd;" _
& " User ID=MyUserName;Data Source=MyDataSource;" _
& " Persist Security Info=True"
With adoCn
.CursorLocation = adUseClient
.ConnectionString = DBStrCnct
.ConnectionTimeout = 30
.Open
End With
To Open A Record Set Use This Statement :
sSQL = "Select * From MyTable"
Set RST = Nothing
RST.Open sSQl, adoCn, adOpenDynamic, adLockOptimistic
'
If Not (RST.EOF And RST.BOF) Then
'Records Present Do ur Coding here
Else
'Records Not present
End If To Execute the SQWL Statement :
sSQL="Update MyTable Set MyField = '" & Text1.Text & "' Where MyPK = 20"
adoCn.Execute sSQL I hope it is clear.
If u have any problems, let me know
Regards
Veena