Originariamente inviato da Melly
scusa ma non ho capito la differenza fra i due:master:

per poter usare x lo devi istanziare dopo la dim

quindi
Dim x as ADODB.recordset
Set x = new ADODB.recordset

Se dichiari
Dim y As New ADODB.recordset e' quindi inutile cercare di capire se e' nothing o meno, tanto non lo sara' mai...

codice:
Dim x As ADODB.Recordset
Dim y As New ADODB.Recordset

Set x = New ADODB.Recordset

If x Is Nothing Then
    MsgBox "x is nothing"
Else
    MsgBox "x is NOT nothing"
End If
Set y = Nothing
If y Is Nothing Then
    MsgBox "y is nothing"
Else
    MsgBox "y is NOT nothing"
End If
Spero di essermi spiegato