Set myConn = CreateObject("ADODB.Connection")
myConn.Open = "Provider=MSDAORA.1;Password=toto;" & _
"User ID=titi;Data Source=test;Persist Security Info=True"
Set Rs = CreateObject("ADODB.Recordset")
With Rs
.ActiveConnection = myConn
.Open "select count(*) from charact_prl where " & _
"cd_charact = 'INDUS' and cd_param = 'DATE' and cd_prl = " & _
Sheets("DEVIS").Rows(i).Cells(33) & "" _
, , adOpenStatic, adLockOptimistic, adCmdText
End With
MsgBox Rs(0)
Rs.Close
Set Rs = Nothing
myConn.Close
Set myConn = Nothing