ADO 2.6 error I am pulling my hair already
This is an odd one. If anyone could give me a hand it would be GREAT.
I have a project in VB6 and it works perfect with ADO 2.5 Now I thought to jump to ADO 2.6 But hey, when I try to run my project, I get this error :
"Compile error : Procedure declaration does not match description of event or procedure having the same name"
and this error is raised on this procedure :
Code:
Private Sub Connection1_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)
If (adStatus = adStatusOK) Then Exit Sub
If pError.Description = "Authentication failed." Then Exit Sub
Beep
abnormalDescription = pError.Description
NetworkError.Show vbModal
End Sub
If I change my reference back to ADO 2.5, everything goes OK.
I even tried to delete my procedure and to write it back again, but the same thing happens.
Oh, I forgot : I have the latest SP for VB installed (Service pack 5)
Please help me folks.
TIA
Surgeon
THanks dude................
............just got the same thing. Was going to post and ask for help.