Hi,
I am tired in searching the solution in google for my issue in ADODC MoveComplete
Issue:
In my application I was using reference ADO 2.0 version for ADODC connection and it was working fine. Due to some other enhancement i forced to change the version from ADO 2.0 to ADO 2.5. Now when I compile the code, I am getting the below error on the below code
Code:
Private Sub Adodc_ResEdt_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
...................
End Sub
Error:
Compile Error:
Procedure declaration does not match description of event or procedure having the same name.
After google the issue they suggest to use the below code but still am getting the same error
Private Sub Adodc1_MoveComplete(ByVal adReason As _ ADODB.EventReasonEnum, _ ByVal pError As ADODB.Error, ByRef adStatus As _ ADODB.EventStatusEnum, _ ByVal pRecordset As ADODB.Recordset) Handles Adodc1.MoveComplete
Kindly help me