ADODB.Connection
does not have a RecordsAffected
property. However, the Execute
method returns the affected records as a ByRef
argument [MSDN]:
Dim recordsAffected As Long
cn.Execute "SELECT * INTO someschema.sometable FROM someschema.anothertable", _
recordsAffected
MsgBox recordsAffected