ExecuteComplete ADODB Connection event not fired with adAsyncExecute parameter
问题 I have a problem trying to catch the completion of a stored proc execute asynchronously. Below my code VBA (in a class module named clsAsync): Option Explicit Private WithEvents cnn As ADODB.Connection Private Sub cnn_ExecuteComplete(ByVal RecordsAffected As Long, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pCommand As ADODB.Command, ByVal pRecordset As ADODB.Recordset, ByVal pConnection As ADODB.Connection) MsgBox "Execution completed" End Sub Sub execSPAsync() Set